Skip to content
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

Problem: map operations can fail #1

Merged
merged 3 commits into from
Feb 25, 2024
Merged

Problem: map operations can fail #1

merged 3 commits into from
Feb 25, 2024

Conversation

vyskocilm
Copy link
Contributor

Solution: add a map seq2 but with a big red warning

Solution: add a map seq2 but with a big red warning
Solution: drop the `AsMap` - the map can be created via plain function
too and not having a method solves the problem of `comparable`.

IOW keeping `AsMap` will lead to a situation `MapError` will be usable
for `[T, V comparable]` which is unnecessary constraint int this case.
Creating Seq2, which can't be expressed as `map` is perfectly legal and
this mismatch is going to be catch by `AsMap` function anyway.
@vyskocilm vyskocilm marked this pull request as ready for review February 25, 2024 09:50
Solution: do not create unnecessary anonymous function
@vyskocilm vyskocilm merged commit 74bad5b into main Feb 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant