Very, very nearly ready for 0.0.6. Too tired to press the burron tonight.
This commit is contained in:
parent
b720211b7b
commit
1900bca706
29 changed files with 567 additions and 800 deletions
|
|
@ -2,13 +2,7 @@
|
|||
|
||||
(set! defun!
|
||||
(nlambda
|
||||
form
|
||||
(cond ((symbol? (car form))
|
||||
(set (car form) (apply 'lambda (cdr form))))
|
||||
(t nil))))
|
||||
|
||||
(set! defun!
|
||||
(nlambda
|
||||
"`(defun name arg-list forms...)`: Define an interpreted Lambda function with this `name` and this `arg-list`, whose body is comprised of these `forms`."
|
||||
form
|
||||
(eval (list 'set! (car form) (cons 'lambda (cdr form))))))
|
||||
|
||||
|
|
@ -20,7 +14,7 @@
|
|||
(cond (symbol? (car form))
|
||||
(set! (car form) (apply nlambda (cdr form))))))
|
||||
|
||||
(defsp! cube (x) ((* x x x)))
|
||||
(defun! cube (x) (* x x x))
|
||||
|
||||
(set! p 5)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue