/
scala/
scala.util/
Either/
MergeableEitherMergeableEither
scala.util.Either.MergeableEither
final implicit class MergeableEither[A](x: Either[A, A]) extends AnyValAllows use of a merge
method to extract values from Either instances regardless of whether they are Left or Right.
val l = Left(List(1)): Either[List[Int], Vector[Int]]
val r = Right(Vector(1)): Either[List[Int], Vector[Int]]
l.merge: Seq[Int] // List(1)
r.merge: Seq[Int] // Vector(1)
Attributes
class
AnyValtrait
Matchableclass
Any:
A AttributesGenerated with
Copyright (c) 2002-2025, LAMP/EPFL
Copyright (c) 2002-2025, LAMP/EPFL
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4