I have a question. If Module Map is in standard OCaml ? I cannot find answer in the internet. Additionaly, what is difference between Map and Set?
2 Answers
It depends on what you mean by "standard" OCaml. The compiler is distributed with a small library, and yes that does have a Map module. Its documentation is here. This library is often called the "Standard Library", but there are actually two other libraries that are more comprehensive: Batteries and Core. They both also have a Map module.
1 Comment
Yes, Map is a standard module in OCaml: http://caml.inria.fr/pub/docs/manual-ocaml/libref/Map.html
To know the diff between map and set, you better have a look at Difference between HashSet and HashMap?
Map in OCaml is like HashMap in Java, so does Set.