unordered-containers
Introduction¶
The unordered-containers
package provides implementations of various
hash-based immutable data structures.
Some of the data structures provided by this package have a very large API surface (for better or worse). The docs here focus on the most common functions which should be more than enough to get you started. Once you know the basics, or if you’re looking for a specific function, you can head over to the unordered-containers Haddocks to check out the full API documentation!
Provided Data Structures¶
Looking for more resources?¶
If you’ve worked your way through the documentation here and you’re looking for more examples or tutorials you should check out:
- haskell-lang.org’s containers tutorial, its focused on the ordered
containers
library but provides some useful examples. - Learn You a Haskell “Modules” chapter
Installing and using the unordered-containers
package¶
Version Requirements¶
All of the examples here should work for all recent versions of the package.
Importing modules¶
All of the modules in unordered-containers
should be imported qualified
since they use names that conflict with the standard Prelude.
import qualified Data.HashSet as HashSet
import qualified Data.HashMap.Strict as HashMap