From: Samir Benmendil Date: Sat, 13 Jan 2018 21:59:14 +0000 (+0000) Subject: Read two arguments from commandline X-Git-Url: https://git.rmz.io/my-scheme.git/commitdiff_plain/5bd76ea90313c3b469e1b7fce192f3cd54c57a33 Read two arguments from commandline `!!` 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. --- diff --git a/app/Main.hs b/app/Main.hs index c0766c1..cdd564b 100644 --- a/app/Main.hs +++ b/app/Main.hs @@ -4,4 +4,4 @@ import System.Environment main :: IO () main = do args <- getArgs - putStrLn ("Hello, " ++ args !! 0) + putStrLn (args !! 0 ++ args !! 1)