Pswitch1:
Filter:
Classes | Streams-Patterns-Events > Patterns > List > Indexing

Pswitch1 : Pswitch : Pattern : AbstractFunction : Object

embed values in a list according to a pattern of indices

Class Methods

Pswitch1.new(list, which: 0)

From superclass: Pswitch

Pswitch1 chooses elements from the list by a stream of indices ( which ) and embeds them in the stream. If the element is itself a pattern, it embeds only one of its values for each index, and thus switches between all patterns in the list.

Inherited class methods

Instance Methods

Inherited instance methods

Undocumented instance methods

.embedInStream(inval)

Examples