Pkey : Pattern : AbstractFunction : Object

access a key in an event stream
Source: Patterns.sc

Description

Pkey simplifies backward access to values in an event being processed by Pbind or another event pattern.

Class Methods

Pkey.new(key, repeats)

Arguments:

key

The name of the event variable to read from.

repeats

The number of items returned before finishing. Using nil, the default value, makes the stream infinite.

Inherited class methods

6 methods from Object ► show

Instance Methods

Inherited instance methods

43 methods from Pattern ► show
159 methods from AbstractFunction ► show
260 methods from Object ► show

Undocumented instance methods

.asStream

.embedInStream(inval)

.key

.key = value

.repeats

.repeats = value

Examples