Struct PartialEither<T1>
- Namespace
- LfrlAnvil.Functional
- Assembly
- LfrlAnvil.Functional.dll
An intermediate object used for creating Either<T1, T2> instances.
public readonly struct PartialEither<T1>
Type Parameters
T1
Value type.
- Inherited Members
- Extension Methods
Fields
Value
Underlying value.
public readonly T1 Value
Field Value
- T1
Methods
WithFirst<T2>()
Creates a new Either<T1, T2> instance with the underlying Value being the second value.
[Pure]
public Either<T2, T1> WithFirst<T2>()
Returns
- Either<T2, T1>
New Either<T1, T2> instance.
Type Parameters
T2
First value type.
WithSecond<T2>()
Creates a new Either<T1, T2> instance with the underlying Value being the first value.
[Pure]
public Either<T1, T2> WithSecond<T2>()
Returns
- Either<T1, T2>
New Either<T1, T2> instance.
Type Parameters
T2
Second value type.