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

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

Control.MapReduce.Engines.Vector

Contents

Description

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

Synopsis

Engines

vectorEngine :: (Foldable g, Functor g) => (Vector (k, c) -> Vector (k, g c)) -> MapReduceFold y k c Vector x d Source #

map-reduce-fold builder, using Vector, returning a Vector result

vectorEngineM :: (Monad m, Traversable g) => (Vector (k, c) -> Vector (k, g c)) -> MapReduceFoldM m y k c Vector x d Source #

effectful map-reduce-fold builder, using Vector, returning an effectful Vector result

groupBy functions

groupByHashableKey :: forall k c. (Hashable k, Eq k) => Vector (k, c) -> Vector (k, Seq c) Source #

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

groupByOrderedKey :: forall k c. Ord k => Vector (k, c) -> Vector (k, Seq c) Source #

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

re-exports

toList :: Vector a -> [a] #

O(n) Convert a vector to a list