Monad


Topic history | v1 (current) | created by jjones

Details

Monad

| created by jjones | Add topic "Monad"
Title
Monad
Description
In functional programming, a monad is an abstraction that allows structuring programs generically. Supporting languages may use monads to abstract away boilerplate code needed by the program logic. Monads achieve this by providing their own data type (a particular type for each type of monad), which represents a specific form of computation, along with two procedures: One to wrap values of any basic type within the monad (yielding a monadic value); Another to compose functions that output monadic values (called monadic functions).This allows monads to simplify a wide range of problems, like handling potential undefined values (with the Maybe monad), or keeping values within a flexible, well-formed list (using the List monad). With a monad, a programmer can turn a complicated sequence of functions into a succinct pipeline that abstracts away auxiliary data management, control flow, or side-effects.
Link
https://en.wikipedia.org/?curid=579061

resources

This topic has no history of related resources.

authors

This topic has no history of related authors.

topics

subtopic of Functional programming
v1 | attached by jjones | Add topic "Monad"
e.g. Monads in C#
v1 | attached by jjones | Add topic "Monad"