fp

package module
v0.0.0-...-456aabf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 16, 2015 License: BSD-2-Clause Imports: 2 Imported by: 0

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Map

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

func Reduce(collection interface{}, operation interface{}) interface{}

Performs an operation on ALL items of collection (slice or map) accumulating the results TODO: Concurrency

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL