On Nov 23, 2007 6:24 PM, Jules Bean <[EMAIL PROTECTED]> wrote: > ...i.e. I wouldn't be afraid of a lambda in a case like that. IME it's > moderately common to have to do: > > mapM_ (\a -> some stuff >> something_with a >> some stuff) ll
This has terrible endweight. In this imperativesque case, I'd write: forM_ li $ \a -> do some stuff something with a some stuff Where forM_ is from Data.Foldable (but is easily written as flip mapM_). Luke _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe