Closed sleepytomcat closed 3 years ago
docs.vavr.io provides an example for Match predicates:
Match
Match(_try).of( Case($Success(Tuple2($("a"), $())), tuple2 -> ...), Case($Failure($(instanceOf(Error.class))), error -> ...) );
(https://docs.vavr.io/#_patterns)
However, instead of Tuple type, the pattern $Tuple shall be used:
Tuple
$Tuple
Match(_try).of( Case($Success($Tuple2($("a"), $())), tuple2 -> ...), Case($Failure($(instanceOf(Error.class))), error -> ...) );
This PR addresses this typo.
Sorry for the slight delay ... Thank you!
docs.vavr.io provides an example for
Match
predicates:(https://docs.vavr.io/#_patterns)
However, instead of
Tuple
type, the pattern$Tuple
shall be used:This PR addresses this typo.