EitherStream
See also: EitherObservable
Attributes
- Graph
-
- Supertypes
-
class AnyValtrait Matchableclass Any
Members list
Value members
Concrete methods
Emit x
if parent stream emits Left(x)
, do nothing otherwise
Emit x
if parent stream emits Left(x)
, do nothing otherwise
Attributes
Emit pf(x)
if parent stream emits Left(x)
and pf
is defined for x
, do nothing otherwise
Emit pf(x)
if parent stream emits Left(x)
and pf
is defined for x
, do nothing otherwise
Attributes
Emit x
if parent stream emits Right(x)
, do nothing otherwise
Emit x
if parent stream emits Right(x)
, do nothing otherwise
Attributes
Emit pf(x)
if parent stream emits Right(x)
and pf
is defined for x
, do nothing otherwise
Emit pf(x)
if parent stream emits Right(x)
and pf
is defined for x
, do nothing otherwise
Attributes
This .split
-s a stream of Either-s by their isRight
property. If you want a different key, use the .splitOne operator directly.
This .split
-s a stream of Either-s by their isRight
property. If you want a different key, use the .splitOne operator directly.
Value parameters
- left
-
(initialLeft, signalOfLeftValues) => output
left
is called wheneverstream
switches fromRight()
toLeft()
.signalOfLeftValues
starts withinitialLeft
value, and updates when the parent stream updates fromLeft(a) to
Left(b)`. - right
-
(initialRight, signalOfRightValues) => output
right
is called wheneverstream
switches fromLeft()
toRight()
.signalOfRightValues
starts withinitialRight
value, and updates when the parent stream updates fromRight(a)
toRight(b)
.