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

Pslide : ListPattern : Pattern : AbstractFunction : Object

slide over a list of values and embed them

Class Methods

Pslide.new(list, repeats: 1, len: 3, step: 1, start: 0, wrapAtEnd: true)

Arguments:

list
repeats

number of segments.

len

length of each segment.

step

how far to step the start of each segment from previous. step can be negative.

start

what index to start at.

wrapAtEnd

if true (default), indexing wraps around if goes past beginning or end. If false, the pattern stops if it hits a nil element or goes outside the list bounds.

Inherited class methods

Instance Methods

Inherited instance methods

Undocumented instance methods

.embedInStream(inval)

.len

.len = value

.start

.start = value

.step

.step = value

.wrapAtEnd

.wrapAtEnd = value

Examples