Personal tools

Monada listelor

From HaskellWiki

Revision as of 00:13, 9 February 2011 by Ha$kell (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

O monada foarte simpla in care injectia (cu) 'return' transforma elementul a in lista cu acel element: [a]. Impreuna cu un operator >>= bine ales formeaza o monada care se poate folosi la simularea paralelismului si la alte aplicatii, printre care scrierea unor succesiunui de calcule in do-notatie.

Este asemanatoare cu monada Maybe construita in jurul tipului Maybe.

See List monad.