[vector] #65: Provide a invidual-item update action in mutable vector API

vector vector at projects.haskell.org
Thu Mar 15 17:49:53 GMT 2012


#65: Provide a invidual-item update action in mutable vector API
------------------------+---------------------------------------------------
Reporter:  hvr          |        Owner:      
    Type:  enhancement  |       Status:  new 
Priority:  minor        |    Milestone:  0.10
 Version:               |   Resolution:      
Keywords:               |  
------------------------+---------------------------------------------------
Changes (by Khudyakov):

 * cc: alexey.skladnoy at gmail.com (added)


Comment:

 I wanted such function all the time too. Maybe modify is better name since
 it's used by state monad in transformers/mtl

 There is possible lazyness related pitfall. If vector's elements aren't
 forced modify may build huge chain of thunks. So variant which evaluates
 result of function evaluation to WHNF could be useful too.

-- 
Ticket URL: <http://trac.haskell.org/vector/ticket/65#comment:2>
vector <http://trac.haskell.org/vector>
Package vector


More information about the vector mailing list