-
Notifications
You must be signed in to change notification settings - Fork 139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How do I generate an IO Vector? #175
Comments
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 :)
…On Fri, Jun 16, 2017 at 10:46 AM tomjaguarpaw ***@***.***> wrote:
Data.Vector has generate :: Int -> (Int -> a) -> Vector a
<https://hackage.haskell.org/package/vector-0.12.0.1/docs/Data-Vector.html#g:7>
but I don't see an equivalent in Data.Vector.Mutable. What am I missing?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#175>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAAQwqc2XMGg7eWSoXBGzUvhVZlwlzE-ks5sEpUngaJpZM4N8jL9>
.
|
So if someone submitted a PR to add |
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 |
Closed in favor of #334 |
Data.Vector
hasgenerate :: Int -> (Int -> a) -> Vector a
but I don't see an equivalent inData.Vector.Mutable
. What am I missing?The text was updated successfully, but these errors were encountered: