clojure.core/partition-all¶
Returns a lazy sequence of lists like partition, but may include partitions with fewer than n items at the end. Returns a stateful transducer when no collection is provided.
Examples¶
Note by kkprop¶
be aware of the case of n is 0
(partition-all 0 '(1 2 3))
will cause repl blocked and cpu 100%
See also¶
Content from the matching ClojureDocs page, with authors credited on each contribution.