This commit is contained in:
Scott Richmond 2023-12-01 14:00:15 -05:00
parent 792ce12617
commit 3f865a64d7

View File

@ -18,7 +18,7 @@ fn count {
(xs as :tuple) -> extern (:dec, extern (:count, xs)) (xs as :tuple) -> extern (:dec, extern (:count, xs))
} }
fn clist { fn list {
"Takes a tuple, and returns it as a list." "Takes a tuple, and returns it as a list."
(xs as :tuple) -> extern (:into, [], extern (:rest, xs)) (xs as :tuple) -> extern (:into, [], extern (:rest, xs))
} }
@ -52,8 +52,11 @@ ns math {
print ("From Prelude, hello.") print ("From Prelude, hello.")
ns prelude { ns prelude {
first
nth
conj conj
clist fold
list
} }
print (prelude) print (prelude)