purescript-foldable-traversable
purescript-foldable-traversable copied to clipboard
Classes for foldable and traversable data structures
...which is that Traversable1 is a stronger requirement, since it only requires Apply constraints on the type variable `f`, as opposed to Applicative. I think we should also try to...
Do `all`, `any`, [`and`](https://pursuit.purescript.org/packages/purescript-foldable-traversable/4.1.1/docs/Data.Foldable#v:and), `or` terminate early (short-circuit) when encountering the first overpowering value (e.g. `all` can return `false` as soon it sees the first `false`). If so, should we...
I'd like to suggest adding a `count` function to count the number of elements that match a predicate. Perhaps something like so: ```purescript count :: forall a f. Foldable f...
See [this comment in #131](https://github.com/purescript/purescript-foldable-traversable/pull/131#pullrequestreview-583961267) for more details.
foldrM
Is there any reason why there is foldlM (foldM) and there is no foldrM? I was confused because I didn't hit when I searched for this in pursuit. ```purs foldrM...
I find this to be a bit strange. Is there any difference that warrants one being re-exported but not the other, or was this an oversight? Edit: this change appears...
**Description of the change** Make `Data.Traversable` re-export `product`. Fixes #137. --- **Checklist:** - [x] Added the change to the changelog's "Unreleased" section with a reference to this PR (e.g. "-...
In https://github.com/purescript/purescript-control/issues/63 we‘re considering to merge `Plus` into `Alternative` and then remove the illegal instance of Plus for Aff, Plus and Alternative for ParAff and add an Alt instance for...
I find myself using the following so often, that I assumed the function should already exist, but it doesn't: `join traverse fn traversable` I've inquired on slack about it, I...