complete draft of base

This commit is contained in:
Scott Richmond 2024-06-04 16:24:54 -04:00
parent a25ece5a68
commit 6cc7f045a2
2 changed files with 6 additions and 10 deletions

View File

@ -209,10 +209,8 @@
"set!" set!
})
(comment
Used in current prelude but not yet in base:
into/2
to_dict
)
(def base (let [b @{}]
(each [k v] (pairs ctx)
(set (b (keyword k)) v))
(table/to-struct b)))

View File

@ -633,10 +633,8 @@
(do
(set source `
fn foo
fn bar () -> foo ()
fn foo () -> :foo
bar ()
fn myadd (x, y) -> add (x, y)
myadd (1, _) (2)
`)
(def result (run))
(b/show result)