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