Monads/Writer monad: Difference between revisions
m
no edit summary
No edit summary |
mNo edit summary |
||
Line 1:
[[Category:Monads]]
The Writer monad is a coding pattern which allows composition of functions which return their results in a wrapping which includes a log string. The final result of a composed function yields both the resulting value, and a concatenation of the logs from each component function application.
Demonstrate in your programming language the following:
|