# monad

☯

old name of yin-yang symbol.

category theory

algebraic monoids are semigroups w/ identity, that is a set w/ associative binary operator * and

category theory knows abstract monoids and monads as further abstraction.

a monad on category C is an endofunctor T together with two natural transformations mu and eta and two conditions. in algebraic terms these conditions resemble associativity and identity with

functional programming: haskell

from http://blog.sigfpe.com/2006/08/you-could-have-invented-monads-and.html

about "extending functions".

examples:

abstract:

a monad is a triple (m, unit, bind) following above laws.

usual definition

in haskell debuggable example is writer monad, multivalued is list monad, randomised is state monad.