Forums > MaxMSP

Replacing elements of a list

Feb 16 2010 | 12:03 pm

Hi All,

Is there an object that makes it simple to replace the nth element of a list with another value.

I’m currently using zl slice and join to achieve the desired function but was wondering if there is simpler method. Almost like a ‘zl replace’ function


Feb 16 2010 | 12:16 pm

Take another look in the help file of zl: giving zl nth a second argument does just that:

-- Pasted Max Patch, click to expand. --

Feb 16 2010 | 1:40 pm

Thank you, this is exactly what I needed.


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

Forums > MaxMSP