4 ms·
I'm mostly familiar with it in F#, Scala, and Haskell, but I suspect any language with some functional roots has an equivalent. The F# For Fun and Profit blog
by tombert 3y ago
I'm mostly familiar with it in F#, Scala, and Haskell, but I suspect any language with some functional roots has an equivalent.
The F# For Fun and Profit blog has a decent post explaining it. That blog doesn't appear to be maintained anymore, but it is archived: https://web.archive.org/web/20180329001511/https://fsharpforfunandprofit.com/posts/recipe-part2/ https://web.archive.org/web/20180329001511/https://fsharpfor...
You can find examples in Scala with `for` comprehensions as well.