Rudolf Adamkovič Personal site


Map n-to-m side-effects: mapc function

An Elisp function that maps n elements to m side-effects:

(mapc (lambda (x)
        (when (< x 30)
          (princ (format "%s!\n" x))))
      '(10 20 30))
10!
20!

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