Ptuple:
Filter:
Classes | Streams-Patterns-Events > Patterns > List

Ptuple : ListPattern : Pattern : AbstractFunction : Object

combine a list of streams to a stream of lists

Description

At each iteration, Ptuple returns a tuple (array) combining the output of each of the patterns in the list. When any of the patterns returns a nil, Ptuple ends that 'repeat' and restarts all of the streams.

Class Methods

Ptuple.new(list, repeats: 1)

From superclass: ListPattern

Arguments:

list

an Array of patterns.

repeats

an Integer or inf.

Inherited class methods

Instance Methods

Inherited instance methods

Undocumented instance methods

.embedInStream(inval)

Examples