Jump to content

Monad (functional programming)

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by 218.22.21.27 (talk) at 03:10, 6 April 2004. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

A monad is an abstract concept that expresses sequential composition. Basically, it describes the ability to order commands to a sequence, such that later commands can use the results of earlier commands.

A monad is a way to structure computations in terms of values and sequences of computations using those values. Monads allow the programmer to build up computations using sequential building blocks, which can themselves be sequences of computations. The monad determines how combined computations form a new computation and frees the programmer from having to code the combination manually each time it is required.

See: http://www.nomaware.com/monads/html/index.html