@hackage map-reduce-folds0.1.2
foldl wrappers for map-reduce
Installation
Tested Compilers
Dependencies (17)
- base >=4.12.0 && <5
- containers >=0.5.0 && <0.7
- parallel >=3.2.2 && <3.3
- text >=1.2.3 && <2.1
- vector >=0.12.0 && <0.14
- discrimination >=0.3 && <0.6 Show all…
Dependents (1)
@hackage/Frames-map-reduce
Package Flags
dump-core
(off by default)
Dump HTML for the core generated by GHC during compilation
streamly9
(off by default)
require streamly >= 0.9
map-reduce-folds simplifies the building of folds to do map-reduce style computations on collections. It breaks the map/reduce into an unpacking step where items may be filtered, transformed or "melted" (made into several new items), an assign step where the unpacked items are assigned keys, a grouping step where the assigned items are grouped by key and then a reduce step which is applied to each grouped subset. Tools are provided to simplify building the individual steps and then "engines" are provided for combining them into efficient folds returning an assortment of containers. The various pieces are replicated for effectful (monadic) steps producing effectful (monadic) folds.