Function: -remove-at

-remove-at is a byte-compiled function defined in dash.el.

Signature

(-remove-at N LIST)

Documentation

Return LIST with its element at index N removed.

That is, remove any element selected as (nth N LIST) from LIST and return the result.

This is a non-destructive operation: parts of LIST (but not necessarily all of it) are copied as needed to avoid destructively modifying it.

See also: -remove-at-indices, -remove.

View in manual

Source Code

;; Defined in ~/.emacs.d/elpa/dash-20260221.1346/dash.el
(defun -remove-at (n list)
  "Return LIST with its element at index N removed.
That is, remove any element selected as (nth N LIST) from LIST
and return the result.

This is a non-destructive operation: parts of LIST (but not
necessarily all of it) are copied as needed to avoid
destructively modifying it.

See also: `-remove-at-indices', `-remove'."
  (declare (pure t) (side-effect-free t))
  (if (zerop n)
      (cdr list)
    (--remove-first (= it-index n) list)))