clojure.core/partition¶
Returns a lazy sequence of lists of n items each, at offsets step apart. If step is not supplied, defaults to n, i.e. the partitions do not overlap. If a pad collection is supplied, use its elements as necessary to complete last partition upto n items. In case there are not enough padding elements, return a partition with less than n items.
Examples¶
See also¶
- clojure.core/partition-all (3)
- clojure.core/split-at (2)
- clojure.core/partition-by (3)
- clojure.core/cycle (2)
Content from the matching ClojureDocs page, with authors credited on each contribution.