Ticket #65 (new enhancement)
Provide a invidual-item update action in mutable vector API
| Reported by: | hvr | Owned by: | |
|---|---|---|---|
| Priority: | minor | Milestone: | 0.10 |
| Version: | Keywords: | ||
| Cc: | alexey.skladnoy@… |
Description
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 idxCould such a convenience operation (unless it's already there) be added to the mutable vector APIs?
Change History
Note: See
TracTickets for help on using
tickets.
