-
Notifications
You must be signed in to change notification settings - Fork 451
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
["Request"] Improve Iterable extension impl #2812
Comments
The exact same pattern is followed here:
This also applies to Tests for these methods are lacking from what I could tell, would it make sense to create those? |
that would be great
yes, that'd be great, thanks! |
Hey @Khepu,
Yes, that would be greatly appreciated 🙏 There is some tests missing here, and there but we're trying to fill them in over time whenever we have to touch related code.
Yes, you can include Also feel free to put it in a separate PR if that is easier for you. |
Co-authored-by: Simon Vergauwen <[email protected]>
* Refactor: Use fold to separate Sequence of Either * Refactor: Use fold to separate Sequence of Validated * Feature: Add tests for separating Either & Validated Co-authored-by: Simon Vergauwen <[email protected]> Co-authored-by: Imran Malic Settuba <[email protected]>
Some of our Iterable extensions, such as
partitionEither
have non-optimal implementations that can be easily fixed to produce fewer allocations and iterations.arrow/arrow-libs/core/arrow-core/src/commonMain/kotlin/arrow/core/Iterable.kt
Line 1002 in 6aa1875
Discussion with Mitchell Cohen from slack regarding
partitionEither
examples: https://kotlinlang.slack.com/archives/C5UPMM0A0/p1662064718102909?thread_ts=1559561395.141900&cid=C5UPMM0A0The text was updated successfully, but these errors were encountered: