Anonymous user
Monads/Writer monad: Difference between revisions
m
no edit summary
m (→{{header|Nim}}) |
mNo edit summary |
||
Line 671:
proc bindWith(f: (x: float) -> float; log: string): WriterBind =
result = (a: WriterUnit) => (f(a[0]), a[1] & log)
func doneWith(x: int):
(x.float, "")
|