Rudolf Adamkovič Personal site


Example: Accumulating with RESULT

The dolist macro can

accumulate values

using the optional RESULT argument:

(let ((sum 0))
  (dolist (x '(10 20 30) sum)
    (setq sum (+ sum x))))
60

© 2025 Rudolf Adamkovič under GNU General Public License version 3.
Made with Emacs and secret alien technologies of yesteryear.