RosettaCodeData/Task/Higher-order-functions/Haskell/higher-order-functions-2.hs
Ingy döt Net db842d013d A-M baby
2013-04-10 21:29:02 -07:00

4 lines
63 B
Haskell

func f = f 1 2
main = print $ func (\x y -> x+y)
-- output: 3