ZILtoid1991@lemmy.world to Programmer Humor@programming.dev · 26 days agoMonadslemmy.worldimagemessage-square37linkfedilinkarrow-up11arrow-down10
arrow-up11arrow-down1imageMonadslemmy.worldZILtoid1991@lemmy.world to Programmer Humor@programming.dev · 26 days agomessage-square37linkfedilink
minus-squarePyro@programming.devlinkfedilinkarrow-up0·26 days agoIsn’t your example just the builder pattern?
minus-squareKache@lemmy.ziplinkfedilinkarrow-up0·edit-226 days 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-up0·26 days agoA monad is a builder that lets you use previous partial results to make decisions while you build.
minus-squareWhyJiffie@sh.itjust.workslinkfedilinkEnglisharrow-up0·26 days agothat sounds like a regular builder
Isn’t your example just the builder pattern?
Yeah, that explanation is missing the critical point of generically applying external functions through
flat_map/bindI 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.
that sounds like a regular builder