3 ms·
Since the other examples have Haskell equivalents, I believe the variable duplicating combinator is `join` in Haskell, but I'm not near ghci to test. I go back
by jim-jim-jim 6y ago
Since the other examples have Haskell equivalents, I believe the variable duplicating combinator is `join` in Haskell, but I'm not near ghci to test.
I go back and forth on how useful these sorts of combinators are. I do appreciate how they at least have to be explicitly declared in Haskell, as opposed to verb trains in J. But I've still gotten complaints from teammates about what the fuck `liftM2 . liftM2` is supposed to mean.
- oisdk 6y agoW is equivalent to join, yes. M can't be typed in Haskell (without newtypes), so there's no real equivalent. Of course they're not really useful for programming; they're more interesting as a compilation target, formal reasoning, and some fun puzzles.