[PD] "popping" from - and prepending to - a generic message

Chris McCormick chris at mccormick.cx
Thu Feb 8 06:10:52 CET 2007

On Thu, Feb 08, 2007 at 02:25:56AM +0100, Matteo Sisti Sette wrote:
> Is there a reasonably stright-forward way in pd-proper (I mean, without 
> externals) to do either of the following two things?
> 1) Removing the first element of a message (NOT necessarily a list) and 
> returning the rest of the message
> 2) Prepending a symbol or number to a message

It doesn't matter if it's a list or not, you can still use [list] to
turn it into a list, do a pre-pending or pre-unpending and then use
[list trim] to turn it back into a message.



chris at mccormick.cx

More information about the Pd-list mailing list