purescript-arrays
purescript-arrays copied to clipboard
Array utility functions
Would be nice to see an adaptation of Haskell's `accumArray`, which gives a handy shortcut around using `ST` to build an array.
i see sortBy/sortWith, but only groupBy. Minor convenience but it would be nicely parallel, and this missing one is often what I want: Theres no new logic, I just need...
Libraries that wish to build upon this one have to implement their own FFI when trying to maximize performance. So, could we expose the FFI here, so that it's more...
See https://github.com/purescript/purescript-st/issues/39 We currently have `ST.foreach` (defined in `purescript-st`), but not `ST.foreachWithIndex`. To add this functionality in `st`, we would need to use FFI. If we define it in this...
As mentioned [here](https://github.com/purescript/purescript-arrays/pull/209#discussion_r559949561), we should first benchmark whether adding an `Array`-specific version of `Data.Foldable.intercalate` is faster than its counterpart and, if so, add that specialized version like we did with...
As I look through the API, I see a pretty consistent pattern of "You can rely on a typeclass for Eq/Ord or you can supply your own". So if a...
This change makes the type signatures of `NonEmptyArray` functions more consistent with the other container types. Here's an example of the previous inconsistencies: https://pursuit.purescript.org/search?q=toUnfoldable
It would be nice to be upfront about the runtime benefit of `snoc`, rather than having users confirm this for themselves by looking in `Arrays.js`.