[PD-dev] proposed new "list" object

Mathieu Bouchard matju at artengine.ca
Wed Jul 20 20:21:48 CEST 2005


On Tue, 19 Jul 2005, Miller Puckette wrote:

> I'm thinking about finally writing a "list" object for Pd to do jobs
> like "append", "any", etc.  I've held off so far because I've felt
> unsure about the best design... and once I stick it in the "base" Pd it
> will be hard to change.

> and use the first argument to differentiate between functions (an idea
> inspired by Krzysztof's xeq object).

this idea is also found in [zl] and in many objects found in GridFlow, 
e.g. [# +] vs [# *].

>     list serialize - spit out elements of a list one by one

In other languages, serialize already means to take any structure (e.g. 
nested lists) and make a string out of it, or write it directly to a 
stream.

In GridFlow this functionality is called [foreach].

In many other languages this is called either "foreach", "for", or "each"  
(see: Tcl, Perl, Python, Ruby, Bash, Java, Javascript, C#, ...)

,-o--------o--------o--------o-. ,---. irc.freenode.net #dataflow |
| The Diagram is the Program tm| | ,-o-------------o--------------o-.
`-o------------o-------------o-' | | Mathieu Bouchard (Montréal QC) |
  | téléphone:+1.514.383.3801`---' `-o-- http://artengine.ca/matju -'




More information about the Pd-dev mailing list