
25 Jan
2011
25 Jan
'11
4:20 a.m.
Erik Hesselink
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