[Haskell-beginners] Is there an idiom for this?

Mark Carter alt.mcarter at gmail.com
Mon Nov 16 11:44:35 UTC 2015


Suppose I want to use an argument twice, as for example in the expression:
(\x -> (pred1 x) and (pred2 x))

Is there a shorter way of doing this?


More information about the Beginners mailing list