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

Pnaryop : Pattern : AbstractFunction : Object

n-ary operator pattern
Source: Patterns.sc
Subclasses: PdegreeToKey

Description

Returns a stream that applies the n-ary operator to the stream values of the receiver, taking n-1 streams as arguments. Usually, this is the result of applying an n-ary operator (i.e. a method with more than one argument) to a pattern.

Examples of n-ary operators are: blend, linlin, linexp, explin, expexp, clip, fold, wrap.

Class Methods

Pnaryop.new(operator, a, arglist)

Arguments:

operator

operator to be applied

a

a pattern (or compatible pattern input)

arglist

a list of patterns (or compatible pattern inputs)

Inherited class methods

Instance Methods

Inherited instance methods

Undocumented instance methods

.a

.a = value

.arglist

.arglist = value

.asStream

.embedInStream(inval)

.operator

.operator = value

Examples