This module allows to access elements of arrays and finite maps like elements of records. This is especially useful for working with nested structures consisting of arrays, maps and records.
Documentation
mapDefault :: Ord key => elem -> key -> T (Map key elem) elemSource
Treats a finite map like an infinite map, where all undefined elements are replaced by a default value.
intMapDefault :: elem -> Int -> T (IntMap elem) elemSource