Skip to content

Go module implementing well-known monads

License

Notifications You must be signed in to change notification settings

tomasbasham/gonads

Repository files navigation

gonads test

In functional programming a monad is a structure that encapsulates a function, and its return value(s), in a type providing more deterministic computational behaviours, and mitigating side-effects. Mondas may be used to reduce boilerplate code needed for common operations, such as dealing with optional or undefined values safely.

This module implements some well-known monadic structures that can be used in Go programs to introduce functional paradigms.

Prerequisites

You will need the following things properly installed on your computer.

Installation

With Go module support (Go 1.11+), simply add the following import

import "github.com/tomasbasham/gonads"

to your code, and then go [build|run|test] will automatically fetch the necessary dependencies.

Otherwise, to install the gonads module, run the following command:

$ go get -u github.com/tomasbasham/gonads

License

This project is licensed under the MIT License.

About

Go module implementing well-known monads

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Languages