package
Version:
v0.0.0-...-c2e7105
Opens a new window with list of versions in this module.
Published: Apr 22, 2017
License: Apache-2.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func Kleisli(a, b func(i interface{}) Monad) func(i interface{}) Monad
Kleisli composition for monadic functions
type BindFunc func(interface{}) Monad
BindFunc is a function type used for Bind
MPlus defines the interface for the MonadPlus class
type Monad interface {
AndThen(func(interface{}) Monad) Monad
LogAndThen(func(interface{}) Monad, func(interface{})) Monad
Return(i interface{}) Monad
}
Monad represents a generic monad
func FMap(f func(interface{}) interface{}, m Monad) Monad
FMap applies a function inside of a monadic value
Join takes a Monad (Monad (interface{})) and returns Monad (interface{})
Source Files
¶
Click to show internal directories.
Click to hide internal directories.