Create A Map Of Strings
ReasonML has the Map.Make
functor in its standard library which allows you to create a Map
module with a specific key type. Here is how we can make a map module with string keys.
We can then use that module to to create an empty map followed by adding key-value pairs to it.
See the live example.
Last updated