(rontolisp) docs
← Seqs

partition

(partition n coll) / (partition n step coll) / (partition n step pad coll)

Answers the groups of n over coll's seq view, stepping by step (n without one); an incomplete tail drops, like the oracle -- with a pad, it stays, filled from the pad up to n (the pad may be endless). A lazy input answers a lazy seq of strict groups, a strict one a strict list. A non-positive size signals. As a value it takes two to four arguments.