Complete reworking of the REPL
which is good in itself, but not what I was meant to be working on.
This commit is contained in:
parent
47f4b4c7f7
commit
02fe5669d8
43 changed files with 415 additions and 281 deletions
6
lisp/expt.lisp
Normal file
6
lisp/expt.lisp
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
(set! expt (lambda
|
||||
(n x)
|
||||
"Return the value of `n` raised to the `x`th power."
|
||||
(cond
|
||||
((= x 1) n)
|
||||
(t (* n (expt n (- x 1)))))))
|
||||
Loading…
Add table
Add a link
Reference in a new issue