> "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.


_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to