Special Form: progn forms*
この特殊フォームは、アーギュメントを (1 つ 1 つ順番に)全て評価し、最後の フォームの結果を返します。これは(最も)一般的な sequencing フォームです。
(progn (print "The first form")
(print "The second form")
(print "The third form"))
-> "The first form"
-> "The second form"
-> "The third form"
=> "The third form"
Special Form: prog1 forms*
この特殊フォームは、アーギュメントを (1 つ 1 つ順番に)全て評価し、最初の フォームの結果を返します。
(prog1 (print "The first form")
(print "The second form")
(print "The third form"))
-> "The first form"
-> "The second form"
-> "The third form"
=> "The first form"
Special Form: prog2 forms*
この特殊フォームは、アーギュメントを (1 つ 1 つ順番に)全て評価し、 2 番目 のフォームの結果を返します。
(prog1 (print "The first form")
(print "The second form")
(print "The third form"))
-> "The first form"
-> "The second form"
-> "The third form"
=> "The second form"