right()
right<
E,A>(a):Either<E,A>
Creates a Right Either containing a success value.
Type Parametersβ
E: E = neverβ
The error type.
A: A = neverβ
The success type.
Parametersβ
a: Aβ
The success value.
Returns: Either<E, A>β
A Right Either.
Sinceβ
2.0.0
Right<A>β
Represents the Right variant of Either containing a success value.
Sinceβ
2.0.0
Type Parametersβ
A: Aβ
The success type.
Propertiesβ
_tag: > readonly *\_tag*: "Right"β
rightβ
readonlyright:A