Repository navigation
add more helper utilities for the .Mutable modules in Vector #64
Description
Activity
and hopefully this could be done for the 0.11 release
If you have anything in mind I can whip up a PR for this.
I've not thought that far!
I'm thinking it'd be good to provide a bunch of the "functional" flavored operations (albeit with monadic results), plus a bunch of inplace operations.
Eg, map and imap, plus inplace versions thereof.
basicaly: everything that has a reasonable definition for the .Mutable modules (though they wont fuse), and that we provide in the pure setting, we should provide, plus the inplace versions of applicable operations.
like http://hackage.haskell.org/package/vector-0.10.12.2/docs/Data-Vector-Generic-Mutable.html is pretty impoverished compared with http://hackage.haskell.org/package/vector-0.10.12.2/docs/Data-Vector-Generic.html
Yeah, I see. Also the documentation has some holes. I will have a go.
you rock! (this is a lot of work mind you, lemme know if you want help!)
Is this for adding utilities like http://hackage.haskell.org/package/vector-0.11.0.0/docs/Data-Vector-Storable.html#g:29 to mutable ones? If so , a big 👍 from me.
Yes it is, but as you can see I'm really lazy so it may take a while.
@archblob any chance this is still lying in your queue? :) or it is open season?
It seems I still have a branch on my fork. Though now that I'm reminded of this, it's pretty tempting.sigh.
But It's pretty much open season.Is this still planned?
Today I needed
elemIndexfor a mutable vector and I was disappointed when I couldn't find anything similar. In the ideal world,elemIndexcould be extremely fast on unboxed mutable vectors, like memchr fast! This would be very useful in low level algorithms.I might have some cycles, but no working knowledge of the vector package internals. How could I help get this issue moving?
Closed in favor of #334
the
.Mutablemodules are currently a bit impoverished. could use some more utilities