2 summary:: Select values from a pattern
3 categories:: Streams-Patterns-Events>Patterns>Filter
4 related:: Classes/Pcollect, Classes/Preject
7 Returns values for which the function returns true. The value is passed to the function.
14 A link::Classes/Function::. Receives values from code::pattern::.
16 A link::Classes/Pattern::.
23 a = Pselect({ arg item; item != 2 }, Pseq(#[1, 2, 3],inf));
25 9.do({ x.next.postln; });
29 The message code::select:: returns a Pselect when passed to a pattern.
33 a = Pseq(#[1, 2, 3],inf).select({ arg item; item != 2 });
36 9.do({ x.next.postln; });