ZILtoid1991@lemmy.world to Programmer Humor@programming.dev · 10 hours agoMonadslemmy.worldimagemessage-square31fedilinkarrow-up1190arrow-down19
arrow-up1181arrow-down1imageMonadslemmy.worldZILtoid1991@lemmy.world to Programmer Humor@programming.dev · 10 hours agomessage-square31fedilink
minus-squaremagic_lobster_party@fedia.iolinkfedilinkarrow-up9·6 hours agoOr for those using Java: Stream<T> is a monad
minus-squarepegazz@lemmy.worldlinkfedilinkarrow-up5·4 hours agoOptional is my favorite example to give, at this point most people have internalized how to use its map function and how it works
minus-squaremagic_lobster_party@fedia.iolinkfedilinkarrow-up2·2 hours agoThat’s a good one. A rule of thumb is that if it has map and flatMap (or equivalent), then chances are that it’s a monad.
Or for those using Java: Stream<T> is a monad
Optional is my favorite example to give, at this point most people have internalized how to use its map function and how it works
That’s a good one.
A rule of thumb is that if it has map and flatMap (or equivalent), then chances are that it’s a monad.