pijalu / mare

A simple in-memory Map/Reduce library for Golang

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mare

MaRe is a simple in memory map/reduce package. It allows to perform M/R of slices or channels by providing a map and a reduce. the Map should return a key and value, stored the Reduce should reduce 2 values to a single one value.

Result is a map, with keys beeing the list of mapped keys and containing the values

interface

To allow a more generic use, this library uses interface{}.

Example

See mare_test.go for simple examples

About

A simple in-memory Map/Reduce library for Golang


Languages

Language:Go 100.0%