- or download this
greeting('Woah'); # Waits
...
greeting('Nelly'); # prints now that it has both arguments
- or download this
greeting verb object = putStrLn (verb ++ ", " ++ object)
- or download this
greeting :: String -> String -> IO ()
- or download this
greeting :: String -> ( String -> IO () )
- or download this
greeting "Hello" "World"
(greeting "Hello") "World"
((greeting) "Hello") "World"
- or download this
greeting "Hello" "World" :: IO ()
greeting "Hello" :: String -> IO ()
greeting :: String -> String -> IO ()
- or download this
sub foo { print "@_" }
- or download this
(-) 2 1 ==> 1
flip (-) 2 1 ==> -1
dec1 = flip (-) 1
dec1 2 ==> 1