-
... d. ( x = [ 1, 2, 3, "foo" , 'bar' ]; y = x.wrapExtend(9); x.postln; y.postln; ) foldExtend(length) Same as wrapExtend but the sequences fold back on the list elements. ( x = [ 1, 2, "foo" ]; y = x.foldExtend(9); x.postln; y.postln; ) clipEx ...
-
... array indexing: .wrapAt(int) collection @|@ integer collection/array indexing: .foldAt(int) collection |@| integer collection/array indexing: .clipAt(int) Set operators set & set intersection of two sets set | set union of two sets setA - s ...
-
... ect(initialValue, function) In functional programming, the operation known as a fold. inject takes an initial value and a function and combines the elements of the collection by applying the function to the accumulated value and an element ...