Ticket #65 (new enhancement)
Provide a invidual-item update action in mutable vector API
|Reported by:||hvr||Owned by:|
One of the operations I've caught myself defining is an update action for modifying an invididual item in a vector, i.e.:
import qualified Data.Vector.Unboxed.Mutable as VUM update vec idx op = VUM.write vec idx . op =<< VUM.read vec idx
Could such a convenience operation (unless it's already there) be added to the mutable vector APIs?