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

6 methods from Object ► show

Instance Methods

Inherited instance methods

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

Undocumented instance methods

.embedInStream(inval)

Examples