mapM package:contiguous

Map each element of a structure to a monadic action, evaluate these actions from left to right, and collect the results. for a version that ignores the results see mapM_.
Map each element of a structure to a monadic action, evaluate these actions from left to right, and ignore the results. For a version that doesn't ignore the results see mapM. mapM_ = traverse_
The mapMaybe function is a version of map which can throw out elements. In particular, the functional arguments returns something of type Maybe b. If this is Nothing, no element is added on to the result array. If it is Just b, then b is included in the result array.
Map over a mutable array, modifying the elements in place.
Strictly map over a mutable array, modifying the elements in place.
Map over a mutable array with indices, modifying the elements in place.
Strictly map over a mutable array with indices, modifying the elements in place.