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

Content deleted Content added
Line 1,005:
SML/NJ also provides a polymorphic hash table:
 
<pre>
<source lang="sml">
- exception NotFound;
exception NotFound
Line 1,024:
- HashTable.lookup m "John Doe"; (* raises the exception if not found *)
val it = "555-1212" : string
</sourcepre>
 
Monomorphic hash tables are also supported using the <code>HashTableFn</code> functor.