Saving Your Work(保存工作成果) Saving Your Work(保存工作成果) You could argue that this is a complete “hello, world” program of sorts. However, it still has a problem. If you exit Lisp and...
Lather, Rinse, Repeat: A Tour of the REPL(REPL 简介) Lather, Rinse, Repeat: A Tour of the REPL(REPL 简介) In this chapter you’ll set up your programming environment and write your ...
二叉树 二叉树 use std :: cmp :: Ordering ; use std :: ops :: Deref ; /// This struct implements as Binary Search Tree (BST), which is a /// simple data structure for storing...
Training the Filter Training the Filter Since you wrote classify and train to take a string argument, you can test them easily at the REPL. If you haven’t yet, you should swi...
Macro Parameters Macro Parameters Since the arguments passed to a macro are Lisp objects representing the source code of the macro call, the first step in any macro is to extra...
Macro Parameters(宏的形参) Macro Parameters(宏的形参) Since the arguments passed to a macro are Lisp objects representing the source code of the macro call, the first step in any macro...
Generating the Expansion(生成展开式) Generating the Expansion(生成展开式) Because do-primes is a fairly simple macro, after you’ve destructured the arguments, all that’s left is to inte...
Free Your Mind: Interactive Programming Free Your Mind: Interactive Programming When you start Lisp in a Box, you should see a buffer containing a prompt that looks like this: ...