Right, there's an awful lot of Lisp actually working...
This commit is contained in:
parent
c3b327f760
commit
1f16241af7
31 changed files with 250 additions and 97 deletions
5
resources/mexpr/gcd.mexpr.lsp
Normal file
5
resources/mexpr/gcd.mexpr.lsp
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
gcd[x;y] = [x>y -> gcd[y;x];
|
||||
rem[y;x] = 0 -> x;
|
||||
T -> gcd[rem[y;x];x]]
|
||||
|
||||
;; gcd[x;y] = [x>y -> gcd[y;x]; remainder[y;x] = 0 -> x; T -> gcd[remainder[y;x];x]]
|
||||
Loading…
Add table
Add a link
Reference in a new issue