Category:Monads: Difference between revisions
Content added Content deleted
mNo edit summary |
mNo edit summary |
||
Line 21: | Line 21: | ||
:Nests functions which return their output in an envelope that includes a log string. |
:Nests functions which return their output in an envelope that includes a log string. |
||
;the Maybe monad |
;the Maybe monad |
||
: |
:Nests partial functions which return their output in a wrapper that includes a boolean flag – indicating whether or not the input value was legal. |
||
;the List monad |
;the List monad |
||
:Nests functions whose outputs consist of ranges of possible values, rather than single values. This provides a convenient encoding of cartesian products and set comprehensions. |
:Nests functions whose outputs consist of ranges of possible values, rather than single values. This provides a convenient encoding of cartesian products and set comprehensions. |