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

6 methods from Object ► show

Instance Methods

Inherited instance methods

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

Undocumented instance methods

.embedInStream(inval)

.len

.len = value

.start

.start = value

.step

.step = value

.wrapAtEnd

.wrapAtEnd = value

Examples