Function: seq-partition

seq-partition is a byte-compiled function defined in transient.el.

Signature

(seq-partition SEQUENCE N)

Documentation

Return list of elements of SEQUENCE grouped into sub-sequences of length N.

The last sequence may contain less than N elements. If N is a negative integer or 0, the function returns nil.

Other relevant functions are documented in the sequence group.

Shortdoc

;; sequence
(seq-partition '(a b c d e f g h) 3)
    => ((a b c) (d e f) (g h))

Implementations

(sequence n) in `seq-25.el'.

Undocumented

Source Code

;; Defined in ~/.emacs.d/elpa/transient-20260414.1009/transient.el
;; Could not find source code, showing raw function object.
#[514 "\211\300W?\205#�\301\302!\204�\303\"B\262\304\"\262\202�\211\237\262\207"
      [1 nil seq-empty-p seq-take seq-drop]
      6 "\n\n(fn SEQUENCE N)"]