Newbie: How to Match on Either type #2864
-
In the documentation ( https://docs.vavr.io/#_patterns ), there is an example of matching the Option type : Match(option).of( What is the canonical way to match Either<X,Y> type? I tried a similar pattern but it is not supported. Either<String, Double> e = Right(12.0); String x = Match(e).of( |
Beta Was this translation helpful? Give feedback.
Answered by
danieldietrich
May 16, 2021
Replies: 1 comment
-
Did you import the patterns from io.vavr.Patterns? |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
pivovarit
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Did you import the patterns from io.vavr.Patterns?