How to use mutable vector

problem

Are there examples for mutable vectors? I want to write a function about mutable vector,but the type name of mutable vector is too long. I want to know how do you write the type name of mutable vector.

examples

let f is a function to accept a mutable vector,how do I write the function’s statement?

Which specific type of mutable vector are you using? The ones from Data.Vector.Mutable for example? https://hackage.haskell.org/package/vector-0.12.2.0/docs/Data-Vector-Mutable.html

2 Likes