[Haskell-cafe] Proposal: (.:) operator in base.
Alex Belanger
i.caught.air at gmail.com
Wed Aug 17 17:43:38 UTC 2016
Hi,
Some of you might be familiar with (.:) = (.) . (.).
It has type :: (c -> d) -> (a -> b -> c) -> a -> b -> d
It allows the composition of two functions, the first one, accepting one
operand, and the second, two operands.
This appears to be a very common pattern, referenced a bit everywhere,
almost always defined on lambdabot and found in multiple codebases in the
wild.
I'd like the know the general sentiment about this operator, as well as how
its inclusion in base, probably Data.Function, would be perceived before I
actually try to make it happen.
Cheers,
Alex (nitrix).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20160817/093085b2/attachment.html>
More information about the Haskell-Cafe
mailing list