colls: testing for equality


    Aug 21 2008 | 11:35 am
    Before I code one myself, just checking: does anyone know of an object or abstraction that compares two colls for equality of content?
    Thanks, Dan -- Dan Nigrin - Defective Records 202 Hack / PC-1600 User / VSTi Host / Jack OS X / Major Malfunction http://defectiverecords.com http://jackosx.com

    • Aug 22 2008 | 7:51 am
      Dan Nigrin schrieb: > Before I code one myself, just checking: does anyone know of an object > or abstraction that compares two colls for equality of content?
      Data or index and data? If its only data, and the size isn't too big, I'd dump them into a list and zl compare them. Something like this:
      -- Stefan Tiedje------------x------- --_____-----------|-------------- --(_|_ ----|-----|-----()------- -- _|_)----|-----()-------------- ----------()--------www.ccmix.com
    • Aug 22 2008 | 12:56 pm
      At 9:51 AM +0200 8/22/08, Stefan Tiedje wrote: >Dan Nigrin schrieb: >>Before I code one myself, just checking: does anyone know of an >>object or abstraction that compares two colls for equality of >>content? > >Data or index and data? If its only data, and the size isn't too >big, I'd dump them into a list and zl compare them. Something like >this:
      Data only - that's very nice Stefan, thank you! The idea is much cleaner than the one I wrote yesterday (where I first compared the lengths, and if equal, then went element by element comparing them to each other).
      There was a couple of little bugs that I've fixed, and I've also made it so that you can just send it a list of two coll names in its inlet, for easier encapsulation:
      -- Dan Nigrin - Defective Records 202 Hack / PC-1600 User / VSTi Host / Jack OS X / Major Malfunction http://defectiverecords.com http://jackosx.com
    • Aug 24 2008 | 6:22 pm
      Dan Nigrin schrieb: > There was a couple of little bugs that I've fixed, and I've also made it > so that you can just send it a list of two coll names in its inlet, for > easier encapsulation:
      doesn't banging zl group work? Then you could get rid of the gates:
      -- Stefan Tiedje------------x------- --_____-----------|-------------- --(_|_ ----|-----|-----()------- -- _|_)----|-----()-------------- ----------()--------www.ccmix.com
    • Aug 25 2008 | 11:58 pm
      Yeah, you're right - much cleaner!
      Thanks, Dan
      At 8:22 PM +0200 8/24/08, Stefan Tiedje wrote: >Dan Nigrin schrieb: >>There was a couple of little bugs that I've fixed, and I've also >>made it so that you can just send it a list of two coll names in >>its inlet, for easier encapsulation: > >doesn't banging zl group work? Then you could get rid of the gates:
      -- Dan Nigrin Defective Records 202 Hack / PC-1600 User / VSTi Host / OMS Convert / Jack OS X / Major Malfunction http://www.defectiverecords.com http://www.jackosx.com