package
module
Version:
v0.0.0-...-456aabf
Opens a new window with list of versions in this module.
Published: Aug 16, 2015
License: BSD-2-Clause
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Generic Concurrent Map and Reduce functions in Go
go get github.com/xdave/fp
godoc github.com/xdave/fp
See the examples in fp_test.go
Also see the GoDoc Documentation.
TODO: Concurrent Reduce
Documentation
¶
func Map(collection interface{}, operation interface{}) interface{}
Performs operation on ALL items of collection (slice or map) concurrently,
returning a new collection with the results (maintains order, too)
func Reduce(collection interface{}, operation interface{}) interface{}
Performs an operation on ALL items of collection (slice or map)
accumulating the results
TODO: Concurrency
Source Files
¶
Click to show internal directories.
Click to hide internal directories.