Alexey Kuleshevich
Alexey Kuleshevich
> It however may break some of existing tooling. Good. Maybe adding a sublibrary to vector will speed up fixes in those tools. Thus further promoting support for new and...
This applies to non-Windows systems as well. If your locale is not set or set to something like `LANG=ascii`, reading files with unicode in them will result in this error....
I would recommend creating a function that can fill a mutable array that was passed as an argument, rather than returning a new mutable array. This will be more flexible....
It is easy to implement `mutableArrayFromListN` in terms of `fillMutableArrayWithListListN`: ```haskell mutableArrayFromListN :: PrimMonad m => Int -> [a] -> m (MutableArray (PrimState m) a) mutableArrayFromListN n xs = do...
FYI. I totally support adding `generate` and `generateM` I am also not against adding `mutableArrayFromListN`. I can see how it can be useful too. All I am trying to say...
Here is a PR with implementation of shuffling: #140 I'd be really happy to see some reviews. `shuffleList` is implemented. Please submit your feedback in a form of a PR....
> randomElement neatly generalizes to arbitrary Foldable: Yes, I thought about this implementation as well, but that would be sub-optimal for Map and Vector, due to `!!` and potential construction...
That is correct! All other vector types (`Primitive`, `Storable` and `Unboxed`) use the same properties and their compilation does not consume almost any memory.
Absolutely, that was the reason why I opened it!
Sure, I don't see a problem switching to cdnjs. PRs are welcome.