BinaryOpStream:
Filter:

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

Undocumented class methods

BinaryOpStream.new(operator, a, b)

Instance Methods

Inherited instance methods

Undocumented instance methods

.a = value

.b = value

.next(inval)

.operator = value

.reset

Examples