realworldocaml / book

V2 of Real World OCaml
https://dev.realworldocaml.org
Other
1.19k stars 175 forks source link

New comment on block [block-idp10022096] #1731

Closed edwintorok closed 11 years ago

edwintorok commented 11 years ago

Typo: build-in/built-in

bactrian commented 11 years ago

This comment references this from milestone beta1: http://www.realworldocaml.org/beta1/en/html/maps-and-hashtables.html#idp10022096

Context:

We don't need to generate specialized comparators for every type we want to build a map on. We can instead use a comparator based on OCaml's build-in polymorphic comparison function, which was discussed in Chapter 3, Lists and Patterns. This comparator is found in the Comparator.Poly module, allowing us to write: