Common Lisp KoansCommon Lisp 語言學(xué)習(xí)程序
Common Lisp Koans(lisp-koans)是一個語言學(xué)習(xí)練習(xí)程序,類似 ruby koans,python koans 等等。Common Lisp Koans 主要是幫助學(xué)習(xí)一些 lisp 規(guī)范特性和改進,可以學(xué)習(xí)到大量的 Common Lisp 語言特性。
終端,在文件 'contemplate.lsp' 執(zhí)行 lisp 解析器:
sbcl --script contemplate.lsp
運行再一個新版本會輸出:unning on a fresh version should output the following:
Thinking about ASSERTS ASSERT-TRUE requires more meditation. You have not yet reached enlightenment ... A koan is incomplete. Please meditate on the following code: File "koans/asserts.lsp" Koan "ASSERT-TRUE" Current koan assert status is "(INCOMPLETE)" You are now 0/169 koans and 0/25 lessons closer to reaching enlightenment
評論
圖片
表情
