Monads/Writer monad: Difference between revisions
m
→ES5
(J draft) |
m (→ES5) |
||
Line 94:
log_half = loggingVersion(half, "divided by 2");
Line 131 ⟶ 130:
// and then nests function applications (working from right to left)
function logCompose(lstFunctions, value) {
return lstFunctions.reduceRight(
}
|