Function: -snoc

-snoc is a byte-compiled function defined in dash.el.

Signature

(-snoc LIST ELEM &rest ELEMENTS)

Documentation

Append ELEM to the end of the list.

This is like cons, but operates on the end of list.

If any ELEMENTS are given, append them to the list as well.

View in manual

Source Code

;; Defined in ~/.emacs.d/elpa/dash-20260221.1346/dash.el
(defun -snoc (list elem &rest elements)
  "Append ELEM to the end of the list.

This is like `cons', but operates on the end of list.

If any ELEMENTS are given, append them to the list as well."
  (declare (side-effect-free t))
  (-concat list (list elem) elements))