That is, a form that evaluates child forms in order and returns the last evaluated value,e.g.
(do (println "Hello World") 3) => 3
That is, a form that evaluates child forms in order and returns the last evaluated value,e.g.
(do (println "Hello World") 3) => 3
© 2022 - 2024 — McMap. All rights reserved.
progn
because it returns the value of then
th form. There's alsoprog1
that returns the value of the first form. (And evenprog2
that returns the value of the second form, though it's hardly ever used!) – Harlanharland