RosettaCodeData/Task/Higher-order-functions/Haskell/higher-order-functions-2.hs

5 lines
63 B
Haskell
Raw Permalink Normal View History

2013-04-10 21:29:02 -07:00
func f = f 1 2
main = print $ func (\x y -> x+y)
-- output: 3