Monad

Why Trust Techopedia

What Does Monad Mean?

A monad is an abstract data type constructor that used to represent computations in functional programming. Monads allow application developers to chain actions together to build a pipeline. The monad assigns additional processing rules to each action in the program.

Advertisements

Techopedia Explains Monad

Monadic functions are usually created by a programmer to define a data-processing pipeline, but novice programmers tend to find them very difficult to understand.

A monad is created by defining two operations (“bind” and “return”) and a type constructor (“M”). The “return” operation takes a value from a plain type and puts it into a type “M” monadic container. Then, the “bind” operation does the opposite byt extracting the original value from the container and passing it to the associated next function in the pipeline.

Advertisements

Related Terms

Margaret Rouse
Technology Expert
Margaret Rouse
Technology Expert

Margaret é uma premiada redatora e professora conhecida por sua habilidade de explicar assuntos técnicos complexos para um público empresarial não técnico. Nos últimos vinte anos, suas definições de TI foram publicadas pela Que em uma enciclopédia de termos tecnológicos e citadas em artigos do New York Times, Time Magazine, USA Today, ZDNet, PC Magazine e Discovery Magazine. Ela ingressou na Techopedia em 2011. A ideia de Margaret de um dia divertido é ajudar os profissionais de TI e de negócios a aprenderem a falar os idiomas altamente especializados uns dos outros.