Comparison of programming languages (associative array): Difference between revisions

Content deleted Content added
Filled in 4 bare reference(s) with reFill
Rescuing 1 sources and tagging 0 as dead. #IABot (v1.5beta)
Line 796:
</source>
 
Note that in order to use <code>Map</code>, you have to provide the functor <code>Map.Make</code> with a module which defines the key type and the comparison function. The third-party library ExtLib provides a polymorphic version of functional maps, called [https://web.archive.org/web/20081211233540/http://ocaml-extlib.googlecode.com/svn/doc/apiref/PMap.html PMap], where you provide the comparison function when creating the map.
 
Lists of pairs and functional maps both provide a purely functional interface. In contrast, hash tables provide an imperative interface. For many operations, hash tables are significantly faster than lists of pairs and functional maps.