25 Jan
2011
25 Jan
'11
5:20 p.m.
Erik Hesselink <hesselink@gmail.com> writes:
importing Control.Applicative
main = print =<< liftM2 (+) readLn (return 3) [...] line noise
Why not just:
main = print . (+3) =<< readLn
Or using applicative: print =<< (+3) <$> readLn ? (Which separates the printing from the addition.) -k -- If I haven't seen further, it is by standing in the footprints of giants