Pbinop:
Filter:
Classes | Streams-Patterns-Events > Patterns > Math

Pbinop : Pattern : AbstractFunction : Object

binary operator pattern
Source: Patterns.sc

Description

Returns a stream that applies the binary operator to the stream values of the receiver. Usually, this is the result of applying a binary operator (i.e. a method with one argument) to a pattern.

Examples of binary operators are: +, -, /, *, min, max, hypot ...

Class Methods

Pbinop.new(operator, a, b, adverb)

Arguments:

operator

operator to be applied

a

a pattern (or compatible pattern input)

b

a pattern (or compatible pattern input)

adverb

Inherited class methods

Instance Methods

Inherited instance methods

Undocumented instance methods

.a

.a = value

.adverb

.adverb = value

.asStream

.b

.b = value

.operator

.operator = value

Examples