-
Pcollect apply a function to a pattern superclass: FuncFilterPattern Pcollect(func, pattern) modifies each value by passing it to the function ( var a, b; a = Pcollect ({ arg item; item * 3 }, Pseq(#[1, 2, 3],inf)); x = a.asStream; 9.do({ x ...
-
... which the function returns true. the value is passed to the function see also: Pcollect , Preject ( var a, b; a = Pselect ({ arg item; item != 2 }, Pseq(#[1, 2, 3],inf)); x = a.asStream; 9.do({ x.next.postln; }); ) the message select retur ...
-
... which the function returns true. the value is passed to the function see also: Pcollect , Pselect ( var a, b; a = Preject ({ arg item; item == 1 }, Pseq(#[1, 2, 3],inf)); x = a.asStream; 9.do({ x.next.postln; }); ) the message reject retur ...
-
... Place ... FilterPatterns Pseed Prewrite Pswitch Pswitch1 Pn Pstutter Pfin Psync Pcollect Pselect Preject PdurStutter Pconst Pwrap PdegreeToKey Pavaroh event stream specific filter patterns Pset Pfset Pmul Padd Psetp Pmulp Paddp Pfindur othe ...
-
... ] Psetpre [ Pmulpre Paddpre ] FuncFilterPattern [ Pwhile Pfset Preject Pselect Pcollect ] Pn [ Ploop ] ] Phid Pdict Pdefn [ Tdef [ Pdef ] ] Pswitch [ Pswitch1 ] ListPattern [ Pwalk Pslide Ptuple Ppar [ Ptpar ] Pdfsm Pfsm Pwrand Pxrand Pran ...
-
... lay // the following patterns can alter the values returned by other patterns //Pcollect(function, pattern) Pcollect ({ arg inval; inval.use({ ~freq = 1000.rand }); inval}, q).play //Pselect(function, pattern) Pselect ({ arg inval; inval.at ...