Function: -insert-at
-insert-at is a byte-compiled function defined in dash.el.
Signature
(-insert-at N X LIST)
Documentation
Return a list with X inserted into LIST at position N.
See also: -splice, -splice-list
Source Code
;; Defined in ~/.emacs.d/elpa/dash-20260221.1346/dash.el
(defun -insert-at (n x list)
"Return a list with X inserted into LIST at position N.
See also: `-splice', `-splice-list'"
(declare (pure t) (side-effect-free t))
(let ((split-list (-split-at n list)))
(nconc (car split-list) (cons x (cadr split-list)))))