Fix 12 exercise defects from review wave 1 (scouts a+d)
This commit is contained in:
1 parent
3f753b2a8f
commit
2735c8dca5
18 files changed
+49
-5
No files matched your search
@@ -3,6 +3,9 @@
|
||||
;;; In Lisp the operator comes first: (+ 1 2) is 3. Nesting needs no
|
||||
;;; precedence rules at all: (* 2 (+ 3 4)) is 14.
|
||||
;;;
|
||||
;;; (defun name () ...) just names the expression; chapter 02
|
||||
;;; explains it.
|
||||
;;;
|
||||
;;; Fix each definition.
|
||||
|
||||
;; TODO: Add 10 and 32.
|
||||
|
||||
@@ -4,6 +4,9 @@
|
||||
;;;
|
||||
;;; A Lisp delight: division is exact. (/ 1 2) is the rational 1/2,
|
||||
;;; not 0.5. Integers, rationals and floats form one number tower.
|
||||
;;;
|
||||
;;; (defun name () ...) just names the expression; chapter 02
|
||||
;;; explains it.
|
||||
|
||||
;; TODO: (2 + 3) multiplied by (4 - 1). Should be 15.
|
||||
(defun calc-a ()
|
||||
|
||||
@@ -7,6 +7,9 @@
|
||||
;;; '(+ 1 2) evaluates to the list (+ 1 2)
|
||||
;;;
|
||||
;;; 'x is reader shorthand for (quote x).
|
||||
;;;
|
||||
;;; (defun name () ...) just names the expression; chapter 02
|
||||
;;; explains it.
|
||||
|
||||
;; TODO: The form itself, not its value.
|
||||
(defun the-form ()
|
||||
|
||||
Reference in new issue
Block a user