|
@@ -16,8 +16,8 @@
|
16
|
16
|
(define-test test-list-or-atom
|
17
|
17
|
"Lists in lisp are forms beginning and ending with rounded parentheses.
|
18
|
18
|
Atoms are symbols, numbers, or other forms usually separated by
|
19
|
|
- white-space or parentheses. The function 'listp' will return true iff
|
20
|
|
- the input is a list. The function 'atom' will return true iff the
|
|
19
|
+ white-space or parentheses. The function 'listp' will return true if
|
|
20
|
+ the input is a list. The function 'atom' will return true if the
|
21
|
21
|
input is an atom."
|
22
|
22
|
(true-or-false? ___ (listp '(1 2 3)))
|
23
|
23
|
(true-or-false? ___ (atom '(1 2 3)))
|
|
@@ -45,4 +45,4 @@
|
45
|
45
|
"symbols like :hello or :like-this are treated differently in lisp.
|
46
|
46
|
Called keywords, they are symbols that evaluate to themselves."
|
47
|
47
|
(true-or-false? ___ (equal :this-is-a-keyword :this-is-a-keyword))
|
48
|
|
- (true-or-false? ___ (equal :this-is-a-keyword ':this-is-a-keyword)))
|
|
48
|
+ (true-or-false? ___ (equal :this-is-a-keyword ':this-is-a-keyword)))
|