RosettaCodeData/Task/Named-parameters/Common-Lisp/named-parameters-2.lisp

9 lines
164 B
Common Lisp

CL-USER> (print-name)
?
CL-USER> (print-name :first "John")
?, John
CL-USER> (print-name :first "John" :last "Doe")
Doe, John
CL-USER> (print-name :last "Doe")
Doe