BinaryOpStream : Stream : AbstractFunction : Object

two streams combined by a binary operator

Description

A BinaryOpStream is created as a result of a binary math operation on a pair of Streams. It is defined to respond to next by returning the result of the math operation on the next value from both streams. It responds to reset by resetting both Streams.

Class Methods

Inherited class methods

7 methods from Object ► show

Undocumented class methods

BinaryOpStream.new(operator, a, b)

Instance Methods

Inherited instance methods

34 methods from Stream ► show
159 methods from AbstractFunction ► show
260 methods from Object ► show

Undocumented instance methods

.a = value

.b = value

.next(inval)

.operator = value

.reset

Examples