h8io.stages.operators.Or
See theOr companion object
A binary operator that tries left first; if left produces no output, it falls back to right, wrapping the result in scala.util.Either.
Evaluation rules for a given input:
- If
leftyieldsh8io.stages.Yield.Some, the result isYield.Some(Left(leftOut), leftStatus, ...).rightis not applied. - If
leftyieldsh8io.stages.Yield.None,rightis applied:rightyieldsSome→Yield.Some(Right(rightOut), mergedStatus, ...).rightyieldsNone→Yield.None(mergedStatus, ...).
Statuses are merged with combine.
Type parameters
- E
-
the error type (covariant)
- I
-
the shared input type (contravariant)
- LO
-
the left output type (covariant)
- RO
-
the right output type (covariant)
Value parameters
- left
-
the preferred stage; tried first
- right
-
the fallback stage; tried only when
leftyields no output
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Members list
In this article