3 ms·
Haskell also gets it right. Look at Data.Map and Data.Set.
by eru 16y ago
Haskell also gets it right. Look at Data.Map and Data.Set.
- jemfinch 16y agoHaskell "gets it right" because you can't write an applicative hash table with the same computational complexity as a mutable one. Haskell's option is either "ordinary balanced binary trees" or "hash table in the IO monad".