It's not simple or elegant but possible...
use [array get] to get the part of the array past the area you want to delete; use [array set] to write them back into the array at an earlier location; use [array size] to resize the array downward.
cheers Miller
On Mon, May 25, 2015 at 10:08:44PM +0200, Pierre Massat wrote:
Dear list,
I've spent a fair amount of time today trying to do two things :
- delete an element from an array (and end up with an array of size n-1),
- add an element to an array (end up with an array of size n+1),
both at an arbitrary position in the array.
Is there any simple and elegant way to do this ?
Thank you very much in advance,
Pierre.
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list