NAryOpStream : Stream : AbstractFunction : Object

several streams combined by an n-ary operator

Description

A NAryOpStream is created as a result of a n-ary math operation on a Stream. It is defined to respond to next by returning the result of the math operation on the next value from the stream. It responds to reset by resetting the Stream.

Class Methods

Inherited class methods

Undocumented class methods

NAryOpStream.new(operator, a, arglist)

Instance Methods

Inherited instance methods

Undocumented instance methods

.a = value

.arglist = list

.next(inval)

.operator = value

.reset

Examples

x = Routine { 6.do { arg i; i.yield; } }.wrap(0, 3);
x.dump;
(
x = Routine { 6.do { arg i; i.yield; } }.wrap(0, 3);
x.next.postln;
x.next.postln;
x.next.postln;
x.next.postln;
x.next.postln;
x.next.postln;
x.next.postln;
)