(js)
|
fun <V : Any, E : Exception> Result<V, E>.any(predicate: (V) -> Boolean): Boolean |
(js)
|
fun <E : Exception> Result<*, E>.failure(f: (E) -> Unit): Unit |
(js)
|
fun <V : Any, U : Any> Result<V, *>.fanout(other: () -> Result<U, *>): Result<Pair<V, U>, *> |
(js)
|
fun <V : Any, U : Any, E : Exception> Result<V, E>.flatMap(transform: (V) -> Result<U, E>): Result<U, E> |
(js)
|
fun <V : Any, E : Exception, E2 : Exception> Result<V, E>.flatMapError(transform: (E) -> Result<V, E2>): Result<V, E2> |
(js)
|
fun <X> Result<*, *>.getAs(): X? |
(js)
|
infix fun <V : Any, E : Exception> Result<V, E>.getOrElse(fallback: V): V |
(js)
|
fun <V : Any, U : Any, E : Exception> Result<V, E>.map(transform: (V) -> U): Result<U, E> |
(js)
|
fun <V : Any, E : Exception, E2 : Exception> Result<V, E>.mapError(transform: (E) -> E2): Result<V, E2> |
(js)
|
infix fun <V : Any, E : Exception> Result<V, E>.or(fallback: V): Success<V> |
(js)
|
fun <V : Any> Result<V, *>.success(f: (V) -> Unit): Unit |