RosettaCodeData/Task/Higher-order-functions/Haskell/higher-order-functions-2.hs
2023-07-01 13:44:08 -04:00

4 lines
63 B
Haskell

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