Forums > MaxMSP

difference between list

November 7, 2009 | 7:24 pm

hello everybody, it’s my first post here.

i am trying to do equivalent operation to modus ponens / law of detachment / on two lists.
let say, that i am having :

23 31 45
31 45

and what i need is to have 23. is there is any element that can do such operation?

regards
p.


November 7, 2009 | 7:44 pm

would [zl unique] do what you want?


November 7, 2009 | 7:57 pm

thanks for the reply, brian.
unfortunately zl unique is not present in max 4.6
any further comments?
thanks.


November 8, 2009 | 1:15 am

[zl sect] does the first half of it. and then … hm.

the following patch will remove identical elements,
the opposite of what you need:

[zl group]
to both inlets of
[zl sect]


November 8, 2009 | 4:45 pm

thx roman, it seems that there is no elegant way of doing that.
the most intuitive way – comparing each element of the list against another and filtering out repeated numbers – works fine, but thought that there is something more refined.

best,
p.


Viewing 5 posts - 1 through 5 (of 5 total)