Add empty set and map words.

This commit is contained in:
Russ Olsen 2020-04-18 18:44:22 -04:00
parent 502f120d7b
commit 8d4375dbf1

View file

@ -42,6 +42,8 @@
: { map-marker ;
: } map-marker [list] list->map ;
: {} ( -- <empty map>) { } ;
'set-marker unique def
: {{ set-marker ;
: }}
@ -50,6 +52,8 @@
builtins.set !! \ Call set with 1 argument
;
: {{}} ( -- <empty set>) {{ }} ;
: type (x -- type-of-x) 1 ->list builtins.type !! ;
: px0 (mod fname -- result) [] px ;