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

Punop : Pattern : AbstractFunction : Object

unary operator pattern
Source: Patterns.sc

Description

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

Examples of unary operators are: squared, sqrt, sin, tan ...

Class Methods

Punop.new(operator, a)

Arguments:

operator

operator to be applied

a

a pattern (or compatible pattern input)

Inherited class methods

Instance Methods

Inherited instance methods

Undocumented instance methods

.a

.a = value

.asStream

.embedInStream(inval)

.operator

.operator = value

Examples