Hallo, Atte André Jensen hat gesagt: // Atte André Jensen wrote:
Still newbie here :-)
I'm looking for a stack-like datatype in pd that'll let me:
- push a float to one end of stack
- figure out if a certain float is in stack
- remove any occurence of a certain float from stack
Maybe you want to take a look at [list-fifo], [list-lifo], [list-stack] and [list-find] from the [list]-abs collection.
The three container abstractions don't allow to peek into the contents of the stack so some hacking is needed. Maybe start with [list-stack] and change the [pd print] subpatch inside to include some construction with [list-find].
Other solutions could be built with externals like [pool] or [coll].
Frank Barknecht _ ______footils.org_ __goto10.org__