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

5 lines
90 B
Haskell
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
func1 f = f "a string"
func2 s = "func2 called with " ++ s
main = putStrLn $ func1 func2