public class ResultKt
| Modifier and Type | Method and Description |
|---|---|
static <V,E> Result<V,E> |
toResultOr(V $receiver,
kotlin.jvm.functions.Function0<? extends E> error)
Converts a nullable of type V to a
class Result. Returns class Ok if the value is
non-null, otherwise the supplied error. |
public static <V,E> Result<V,E> toResultOr(V $receiver, kotlin.jvm.functions.Function0<? extends E> error)
Converts a nullable of type V to a class Result. Returns class Ok if the value is
non-null, otherwise the supplied error.
class Result,
class Ok