Function: erc-group-list

erc-group-list is a byte-compiled function defined in erc.el.gz.

Signature

(erc-group-list LIST N)

Documentation

Group LIST into sublists of length N.

Source Code

;; Defined in /usr/src/emacs/lisp/erc/erc.el.gz
;; used for the banlist cmds
(defun erc-group-list (list n)
  "Group LIST into sublists of length N."
  (cond ((null list) nil)
        ((null (nthcdr n list)) (list list))
        (t (cons (cl-subseq list 0 n) (erc-group-list (nthcdr n list) n)))))