Function: -flatten-n

-flatten-n is a byte-compiled function defined in dash.el.

Signature

(-flatten-n NUM LIST)

Documentation

Flatten NUM levels of a nested LIST.

See also: -flatten

View in manual

Source Code

;; Defined in ~/.emacs.d/elpa/dash-20260221.1346/dash.el
(defun -flatten-n (num list)
  "Flatten NUM levels of a nested LIST.

See also: `-flatten'"
  (declare (pure t) (side-effect-free t))
  (dotimes (_ num)
    (setq list (apply #'append (mapcar #'-list list))))
  list)