Monads/List monad: Difference between revisions

Content added Content deleted
(Added yield to the list of more expressive name for 'mu')
Line 402: Line 402:
</lang>
</lang>


The list monad is equivalent to [[List comprehensions]] which are built into F#:
(The original example, which follows, variously uses List.iter, a list comprehension and the Result type but doesn't define anything like a list monad.)


<lang fsharp>
<lang fsharp>