Either
Types
Inheritors
Extensions
Link copied to clipboard
Gets the left value if this is Either.Right otherwise uses provided handler by providing the value from Either.Left.
Link copied to clipboard
Gets the left value if this is Either.Right otherwise throws from Either.Left.
Link copied to clipboard
Returns the value from this either whether its Either.Left or Either.Right.
Link copied to clipboard
inline fun <L, R1, R2, R3> Either<L, R1>.zipWith(either2: Either<L, R2>, fZip: (R1, R2) -> R3): Either<L, R3>
Content copied to clipboard
inline fun <L, R1, R2, R3, R4> Either<L, R1>.zipWith( either2: Either<L, R2>, either3: Either<L, R3>, fZip: (R1, R2, R3) -> R4): Either<L, R4>
Content copied to clipboard
Creates a Either.Right with result from fZip if all Eithers are right, otherwise Either.Left is returned.