Map
tleef opened this issue · comments
Thomas Lee commented
Rules
-
:atomize_keys
- if key is a string, try to parse it to an atom (only existing atoms by default) -
:size
- asserts that the input size is equal to the given value -
:min
- asserts that the input size is at least the given value -
:max
- asserts that the input size is at most the given value
There are other assertions we might want to make about a Map such as its keys or the type of its values. I'm not sure what a good api for these assertions looks like yet and what sane defaults might be for things like :missing_keys
or :unknown_keys
.
We should also explore the utility of these assertions against defining a Bliss.Struct