haskell getArgs -
how getargs work, trying read in text file terminal sends contents 1 of defined functions. can post illustration code give me thought of how works. thanks.
getargs
io
action produces list of string
fmap somefunction $ readfile =<< fmap head getargs
or in applicative style:
somefunction <$> readfile =<< head <$> getargs
haskell
No comments:
Post a Comment