Assorted concrete container types for Haskell
open sourceBSD-3-Clausefree
containers is the Haskell library of efficient, general-purpose immutable container types: sets and maps (Data.Set, Data.Map), maps and sets keyed by Int (Data.IntMap, Data.IntSet), finite sequences (Data.Sequence), trees and graphs. Each operation documents its cost, worst-case or amortized, and the bounds hold even when structures are shared. It's one of Haskell's core libraries, maintained under the Core Libraries Committee and installed from Hackage.
Problems it solves
- an efficient immutable map or set in Haskell
- a persistent sequence with fast access at both ends in Haskell
- build and traverse a graph in Haskell
- a map keyed by Int that's faster than a general Map
Features
- Data.Map and Data.Set
- Data.IntMap and Data.IntSet
- Data.Sequence finger-tree sequences
- trees and graphs
- documented worst-case or amortized costs
