2 summary:: While a condition holds, repeatedly embed stream
3 categories:: Streams-Patterns-Events>Patterns>Language Control
6 Repeatedly strong::embed:: a link::Classes/Stream:: while the result of code::func:: is code::true::.
13 Stream function. In an event stream receives the current link::Classes/Event:: as argument.
15 A link::Classes/Pattern::.
22 a = Pwhile({ z }, Pseq(#[1, 2, 3]));
26 7.do({ x.next.postln; }); // while z == true, the values are embedded
27 z = false; // set z to false
28 x.next; // the rest of the stream is still embedded
30 x.next; // but then it is not continued.