Function: -partition

-partition is a byte-compiled function defined in dash.el.

Signature

(-partition N LIST)

Documentation

Return a new list with the items in LIST grouped into N-sized sublists.

If there are not enough items to make the last group N-sized, those items are discarded.

View in manual

Source Code

;; Defined in ~/.emacs.d/elpa/dash-20260221.1346/dash.el
(defun -partition (n list)
  "Return a new list with the items in LIST grouped into N-sized sublists.
If there are not enough items to make the last group N-sized,
those items are discarded."
  (declare (pure t) (side-effect-free t))
  (-partition-in-steps n n list))