difference between list

pustinga's icon

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.

bkshepard's icon

would [zl unique] do what you want?

pustinga's icon

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

Roman Thilenius's icon

[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]

pustinga's icon

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.