Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
rename traverseX and sequenceX for Iterable #2692
rename traverseX and sequenceX for Iterable #2692
Changes from 6 commits
a5522cc
3872d7a
84e9076
7d31c3e
3fb8bc1
f64dd84
2df416c
9b6bd9b
38d22d1
bbcbada
e97a6ba
d649b22
1c2e971
bbcfb2a
76fc5dc
5d47117
b68af90
df90bd6
0469266
141b3fc
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Curious that this doesn't conflict with the other
traverse
functions 🤔This seems like one of those signatures that breaks all other functions 😅
What happens in the case of:
I guess
???
here isList<Either<String, Int>>?
, and to turn it intoEither<String, List<Int>>?
we'd need to chain it with?.sequence()
. That'd be pretty cool if that works like that out of the box.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes this one would be List<Either<String, Int>>? I can set up a small example test