mirror of
https://github.com/russolsen/sallyforth
synced 2024-12-25 21:58:18 +01:00
Add empty set and map words.
This commit is contained in:
parent
502f120d7b
commit
8d4375dbf1
1 changed files with 4 additions and 0 deletions
|
@ -42,6 +42,8 @@
|
||||||
: { map-marker ;
|
: { map-marker ;
|
||||||
: } map-marker [list] list->map ;
|
: } map-marker [list] list->map ;
|
||||||
|
|
||||||
|
: {} ( -- <empty map>) { } ;
|
||||||
|
|
||||||
'set-marker unique def
|
'set-marker unique def
|
||||||
: {{ set-marker ;
|
: {{ set-marker ;
|
||||||
: }}
|
: }}
|
||||||
|
@ -50,6 +52,8 @@
|
||||||
builtins.set !! \ Call set with 1 argument
|
builtins.set !! \ Call set with 1 argument
|
||||||
;
|
;
|
||||||
|
|
||||||
|
: {{}} ( -- <empty set>) {{ }} ;
|
||||||
|
|
||||||
: type (x -- type-of-x) 1 ->list builtins.type !! ;
|
: type (x -- type-of-x) 1 ->list builtins.type !! ;
|
||||||
|
|
||||||
: px0 (mod fname -- result) [] px ;
|
: px0 (mod fname -- result) [] px ;
|
||||||
|
|
Loading…
Reference in a new issue