3 ms·
It's just a macro around mapc ;; the exprs evaluate to lists, and the vars step over them (mapc-loop (expr1 expr2 ...) (var1 var2 ...) body) We want this
by kazinator 4y ago
It's just a macro around mapc
;; the exprs evaluate to lists, and the vars step over them
(mapc-loop (expr1 expr2 ...) (var1 var2 ...) body)
We want this translation:
(mapc (lambda (var1 var2 ...) body) expr1 expr2 ...)
If we leave all matters of error checking to the generated code, it's just:
(defmacro mapc-loop (exprs vars &rest body)
`(mapc (lambda ,vars ,@body) ,@exprs))
It boggles the mind what that passes for a blog-worthy invention in some backwaters.