summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
1823a25)
`!!` is the "list indexing" operator. It returns the value in the list
on the lhs at the index on the rhs.
`++` concatenates two lists.
A string is a list of chars.
main :: IO ()
main = do
args <- getArgs
main :: IO ()
main = do
args <- getArgs
- putStrLn ("Hello, " ++ args !! 0)
+ putStrLn (args !! 0 ++ args !! 1)