Monads/Writer monad: Difference between revisions
Content added Content deleted
mNo edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
[[Category:Monads]] |
[[Category:Monads]] |
||
The Writer monad is a coding pattern which allows composition of functions which return their results |
The Writer monad is a coding pattern which allows composition of functions which return their results combined with 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: |
Demonstrate in your programming language the following: |