You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make a new vector and iterate :)
The mutable API is kinda poor for historical reasons but we have plans to
improve it time / contributions permitting :)
I think the API for mutable vectors is lacking a lot of utilities, so yeah, I'd accept it.
It may be that there's a rewrite rule in place to turn any Vector construction into a corresponding MVector construction (because if you think about it, building an immutable vector has to be building a mutable vector and then freezing). However, off hand I don't know what it is, and it isn't the most obvious thing to try. I could take a look if you'd be interested in that, though.
Data.Vectorhasgenerate :: Int -> (Int -> a) -> Vector abut I don't see an equivalent inData.Vector.Mutable. What am I missing?