
10 Oct
2010
10 Oct
'10
5:32 p.m.
"The student has accidental given the arguments of map in the wrong order"
I am using "for = flip map" a lot, in code like for [ 1 .. 10 ] $ \ i -> ... in fact that's one of my "most dearly missed" Prelude functions. Note that we have Control.Monad.forM forM [ 1 .. 10 ] $ \ i -> do ... Oh, and while we're at it - are there standard notations for "forward" function composition and application? I mean instead of h . g . f $ x I'd sometimes prefer x ? f ? g ? h but what are the "?" J.W.