[zl sub] questions

Bill 2's icon

A reply to a recent question ( https://cycling74.com/forums/how-to-recognise-repetitive-numbers-on-a-message ) prompted me to read up on [zl sub], which I've never used, but it still doesn't completely make sense. Its normal function does, i.e. finding where and how many times the right list occurs in the left list.

But then there's this: "If an optional second argument is used to specify a value which will replace the number specified by the input value, the resulting list is sent out the right outlet of the zl object"

I've played around with this but can't get it happening. Could someone please explain it?

Also, does "sub" mean substitute? That'd make sense for this bit that I don't understand, but not for the main bit that I do understand.

Jean-Francois Charles's icon

It might be a deprecated feature. Where did you find the sentence "If an optional second argument..."? I don't see it in Max 8 doc.

Bill 2's icon

Hi Jean-Francois, thanks for having a look. It's in the online Max 7 and 6 documentation.

I just had a look in the Reference accessed from zl's object action menu in Max 8 and it's there too, near the bottom of the page, the 3rd paragraph from "See Also".