[vector] #71: Request to add total size information to Vector

vector vector at projects.haskell.org
Thu Jan 26 22:44:42 GMT 2012


#71: Request to add total size information to Vector
------------------------+---------------------------------------------------
Reporter:  sanketr      |        Owner:         
    Type:  enhancement  |       Status:  closed 
Priority:  major        |    Milestone:         
 Version:               |   Resolution:  wontfix
Keywords:               |  
------------------------+---------------------------------------------------
Changes (by rl):

  * status:  new => closed
  * resolution:  => wontfix


Comment:

 Sorry for now replying earlier, this fell through the deep cracks in my
 memory...

 I don't think any of the existing vector types is the right place to do
 what you want but you can easily define your own vector type based on one
 of the current ones. Just make it an instance of
 `Data.Vector.Generic.Vector` and you'll be able to use all vector
 operations with it. IIUC, you'll basically want your mutable vectors to
 update a sum whenever an element is updated. That's certainly a reasonable
 thing to have.

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


More information about the vector mailing list