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

5 lines
90 B
Haskell
Raw Permalink Normal View History

2013-04-10 21:29:02 -07:00
func1 f = f "a string"
func2 s = "func2 called with " ++ s
main = putStrLn $ func1 func2