[vector] #27: Zero out an unboxed array

vector vector at projects.haskell.org
Sat Jul 17 01:41:19 EDT 2010


#27: Zero out an unboxed array
------------------------+---------------------------------------------------
Reporter:  jbapple      |        Owner:     
    Type:  enhancement  |       Status:  new
Priority:  minor        |    Milestone:     
 Version:  0.6          |   Resolution:     
Keywords:               |  
------------------------+---------------------------------------------------
Comment (by anonymous):

 Actually, I was going to solve this in a slightly different way. It would
 be quite trivial to add rewrite rules like these:

 {{{
 newWith n (0 :: Int) = <memset>
 newWith n (0 :: Double) = <memset>
 ...
 }}}

 Would that be sufficient?

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


More information about the vector mailing list