/gofpher

a collection of functional programming constructs for go

Primary LanguageGoApache License 2.0Apache-2.0

Gofpher GoDoc Go Report Card Build Status

Gofpher is a collection of FP-like utilities for go, useful for rapidly prototyping an application.

Key features:

  • Support for monads and monadic pipelines
  • Lazily evaluated lists
  • Either monads
  • A pipeline execution tool for easily assembling collections of monadic computations

Table of Contents

Usage

Most of the libraries here have some level of interdependence. In general all of the monadic constructs should implement monad.Monad and other tools may be written around the behavior of certain monads. See the tests for real-life examples of how to use some of these features.

License

Gofpher is licensed under the Apache 2.0 license. See LICENSE for full details.