map-reduce-folds-0.1.0.0: foldl wrappers for map-reduce

Copyright(c) Adam Conner-Sax 2019
LicenseBSD-3-Clause
Maintaineradam_conner_sax@yahoo.com
Stabilityexperimental
Safe HaskellSafe
LanguageHaskell2010

Control.MapReduce.Engines.List

Contents

Description

map-reduce engine (fold builder) using [] as its intermediate type.

Synopsis

Engines

listEngine :: (Foldable g, Functor g) => ([(k, c)] -> [(k, g c)]) -> MapReduceFold y k c [] x d Source #

map-reduce-fold builder using (Hashable k, Eq k) keys and returning a [] result

listEngineM :: (Monad m, Traversable g) => ([(k, c)] -> [(k, g c)]) -> MapReduceFoldM m y k c [] x d Source #

effectful map-reduce-fold builder using (Hashable k, Eq k) keys and returning a [] result

groupBy Functions

groupByHashableKey :: (Hashable k, Eq k) => [(k, c)] -> [(k, Seq c)] Source #

group the mapped and assigned values by key using a Data.HashMap.Strict

groupByOrderedKey :: Ord k => [(k, c)] -> [(k, Seq c)] Source #

group the mapped and assigned values by key using a Data.HashMap.Strict

Helpers

unpackList :: Unpack x y -> [x] -> [y] Source #

unpack for list based map/reduce

unpackListM :: UnpackM m x y -> [x] -> m [y] Source #

effectful unpack for list based map/reduce