add suport for {} objects

This commit is contained in:
Quentin Leonetti
2019-07-20 19:46:52 +02:00
parent 3d5a17431e
commit 2574ad297b
3 changed files with 40 additions and 6 deletions

11
examples/objects.lisp Normal file
View File

@@ -0,0 +1,11 @@
; objects
(def ob {"a" 1 "b" 2})
(echo (of ob "a"))
(echo (keys ob))
(echo (values ob))
(set ob "a" 4)
(echo (of ob "a"))