From 9e25f24b3f9daa641b22bafbb9957a3380ae3b3f Mon Sep 17 00:00:00 2001 From: Scott Richmond Date: Wed, 18 May 2022 18:28:44 -0400 Subject: [PATCH] Move testing to sandbox dir --- .gitignore | 1 + hello.ld | 18 ------------------ 2 files changed, 1 insertion(+), 18 deletions(-) delete mode 100644 hello.ld diff --git a/.gitignore b/.gitignore index 91a44d9..68fa7d7 100644 --- a/.gitignore +++ b/.gitignore @@ -17,3 +17,4 @@ pom.xml.asc .clj-kondo/ .cpcache/ **/.DS_Store +/sandbox \ No newline at end of file diff --git a/hello.ld b/hello.ld deleted file mode 100644 index a7a8fdd..0000000 --- a/hello.ld +++ /dev/null @@ -1,18 +0,0 @@ -fn fib (n) -> if eq (n, 0) - then 1 - else if eq (n, 1) - then 1 - else add (fib (sub (n, 1)), fib (sub (n, 2))) - -fn fact { - (n) -> fact (n, 1) - (1, acc) -> acc - (n, acc) -> fact (sub (n, 1), mult (n, acc)) -} - -ns Recursive { - fact - fib -} - -Recursive :fib (25) \ No newline at end of file