Function: --doto

--doto is a macro defined in dash.el.

Signature

(--doto INIT &rest FORMS)

Documentation

Anaphoric form of -doto.

This just evaluates INIT, binds the result to it, evaluates FORMS, and returns the final value of it. Note: it need not be used in each form.

Source Code

;; Defined in ~/.emacs.d/elpa/dash-20260221.1346/dash.el
(defmacro --doto (init &rest forms)
  "Anaphoric form of `-doto'.
This just evaluates INIT, binds the result to `it', evaluates
FORMS, and returns the final value of `it'.
Note: `it' need not be used in each form."
  (declare (debug (form body)) (indent 1))
  `(let ((it ,init))
     ,@forms
     it))