Skip to content

Pattern: PSequence

Sequence of values based on an array

Takes an input list, and repeats the items in this list.

Example output

>>> p = PSeq([ 1, 2, 3, 5 ])
>>> p.nextn(10)
[1, 2, 3, 5, 1, 2, 3, 5, 1, 2, 3, 5, 1, 2, 3, 5]