UnaryOpStream:
Filter:

UnaryOpStream : Stream : AbstractFunction : Object

stream modified by a unary operator

Description

A UnaryOpStream is created as a result of a unary 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

UnaryOpStream.new(operator, a)

Instance Methods

Inherited instance methods

Undocumented instance methods

.a = value

.next(inval)

.operator = value

.reset

Examples

x = Routine { 6.do { arg i; i.yield; } }.squared;
x.dump;
(
x = Routine { 6.do { arg i; i.yield; } }.squared;
x.next.postln;
x.next.postln;
x.next.postln;
x.next.postln;
x.next.postln;
x.next.postln;
x.next.postln;
)