The 'progn' special form is basically a 'block' construct that contains a block of code [expressions] to evaluate. The value of the last expression 'exprN' will be returned as the result of 'progn'. If there are no 'exprs', NIL is returned.
(progn (print "hi") (print "ho")) ; prints "hi" "ho" returns "ho" (progn) ; returns NIL (progn "hey" (print "ho")) ; prints "ho" returns "ho" (progn 'a) ; returns A (progn 'a 'b 'c) ; returns C
Note:
See the
progn
special form in the