ZILtoid1991@lemmy.world to Programmer Humor@programming.dev · 13 hours agoMonadslemmy.worldimagemessage-square34fedilinkarrow-up1213arrow-down111
arrow-up1202arrow-down1imageMonadslemmy.worldZILtoid1991@lemmy.world to Programmer Humor@programming.dev · 13 hours agomessage-square34fedilink
minus-squarePyro@programming.devlinkfedilinkarrow-up3·4 hours agoIsn’t your example just the builder pattern?
minus-squareKache@lemmy.ziplinkfedilinkarrow-up3·edit-248 minutes agoYeah, that explanation is missing the critical point of generically applying external functions through flat_map/bind I think this is a good explanation: https://fsharpforfunandprofit.com/rop/
minus-squaremarcos@lemmy.worldlinkfedilinkarrow-up1·4 hours agoA monad is a builder that lets you use previous partial results to make decisions while you build.
Isn’t your example just the builder pattern?
Yeah, that explanation is missing the critical point of generically applying external functions through
flat_map
/bind
I think this is a good explanation: https://fsharpforfunandprofit.com/rop/
A monad is a builder that lets you use previous partial results to make decisions while you build.