Closed Oldes closed 3 years ago
map! is often used to hold JSON data and loading a JSON with null will make the nulled value as deleted. Currently:
map!
null
>> decode 'json {{"a":null}} == #()
Red language already supports it:
>> load/as {{"a":null}} 'json == #( a: none )
https://github.com/Oldes/Rebol-wishes/issues/20 is required so one would be able to remove values from map when needed.
Needs additional change in foreach native!
foreach
>> m: #(a 1 b 2 c #[none]) == #( a: 1 b: 2 c: none ) >> foreach [k v] m [probe k probe type? v ()] a: integer! b: integer! >>
map!
is often used to hold JSON data and loading a JSON withnull
will make the nulled value as deleted. Currently:Red language already supports it:
https://github.com/Oldes/Rebol-wishes/issues/20 is required so one would be able to remove values from map when needed.