ch2_1_progn
This is an old revision of the document!
PROGN
PROGN
accepts any number of any arguments - it just packs a sequence of forms. All the arguments are evaluated and the result of the last one is returned. The previous forms will show only the side effects.
>(progn (print "a") ; PRINT will print as side effect (print "b") (print "c")) "a" "b" "c" "c" ; return value from the last PRINT
PROGN
can be used in the cases, where only single form can be used, as in IF
ch2_1_progn.1645631160.txt.gz · Last modified: 2022/02/23 08:46 by admin