September 2016
Intermediate to advanced
408 pages
9h 18m
English
Vectors and arrays are excellent for dense data, that is, when you're not doing inserts in between elements, and the range of indices is reasonable. But if you need, for example, inserts and indexing in arbitrary indices, a tabular structure won't perform well. In such cases, you need some sort of a map or similar structure.
Haskell doesn't have any sparse structures built-in, nor does the Haskell report define any. This has some nice consequences:
There are many excellent libraries, implementing a wide range of sparse data structures, in Hackage, not to ...
Read now
Unlock full access