purescript-arrays icon indicating copy to clipboard operation
purescript-arrays copied to clipboard

Array utility functions

Results 21 purescript-arrays issues
Sort by recently updated
recently updated
newest added

This generalizes `deleteBy` parameter without any implementation changes. Current problem is that we must have actual value or a dummy of the type of array item while using `deleteBy`: ```purescript...

I think this function can be useful `generate :: Int -> (Int -> a) -> Array a` It builds an array of the given length by applying the function to...

A lot of functions like delete require an index. A lot of times that index was not stored (which would also get updated as the array would change) but has...

The logic of Array.index can be implemented in terms of `length` and `unsafeIndexImpl`. Is it necessary for it to be foreign? In backend-optimizer, I'm preparing a change to inline the...

See https://try.purescript.org/?gist=26968458c1261226b33e574128ba9aae For a given array like `[0, 1, 2]`, I expect the `l` and `r` arguments to be - first run: `0` and `1` - second run: `1` and...

**Description of the change** Fixes #229 --- **Checklist:** - [x] Added the change to the changelog's "Unreleased" section with a reference to this PR (e.g. "- Made a change (#0000)")...

Backlinking to #212 for more context. The question here is whether to add `sliding`, a function that returns windows of the array, and what its type signature should be. A...

status: needs more info

**Description of the change** Adds a human-friendly version of `null`: `isEmpty` --- **Checklist:** - [x] Added the change to the changelog's "Unreleased" section with a reference to this PR (e.g....

We already made `nub` use Ord by default in #91, but there are a few other unnecessarily quadratic functions in this library still which probably deserve the same treatment. I...

status: blocked
type: breaking change
purs-0.15