OkIf(Boolean, String) |
Creates a result as Ok variant if the okCondition holds.
Otherwise, it will map into an Err.
C#
|
OkIfT(Boolean, T, String) |
Creates a result of T as Ok variant with value value if the okCondition holds.
Otherwise, it will map into an Err.
C#
|
OkIfT(Boolean, FuncT, String) |
Creates a result of T as Ok variant with value lazyGetValue() if the okCondition holds.
Otherwise, it will map into an Err.
Note that the lazyGetValue is only evaluated if the okCondition holds.
C#
|