Replacing elements of a list

Jack James's icon

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

Thanks
Jack

EMV's icon
Max Patch
Copy patch and select New From Clipboard in Max.

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

Jack James's icon

Thank you, this is exactly what I needed.

Jack