One advantage of Reason ML over JavaScript is that it provides a Map
type that uses structural equality rather than reference equality.
However, I cannot find usage examples of this.
For example, how would I declare a type scores
that is a map of strings to integers?
/* Something like this */
type scores = Map<string, int>;
And how would I construct an instance?
/* Something like this */
let myMap = scores();
let myMap2 = myMap.set('x', 100);
t
function? Can you share why it was implemented in two stages? Coming from F# this seems very strange. – Cuneo