RestrictedCont

interface RestrictedCont<R, A>

Functions

attempt
Link copied to clipboard
open fun attempt(): RestrictedCont<R, Result<A>>
flatMap
Link copied to clipboard
open fun <B> flatMap(f: (A) -> RestrictedCont<R, B>): RestrictedCont<R, B>
fold
Link copied to clipboard
abstract fun <B> fold(f: (R) -> B, g: (A) -> B): B
handleError
Link copied to clipboard
open fun handleError(f: (R) -> A): RestrictedCont<Nothing, A>
handleErrorWith
Link copied to clipboard
open fun <R2> handleErrorWith(f: (R) -> RestrictedCont<R2, A>): RestrictedCont<R2, A>
map
Link copied to clipboard
open fun <B> map(f: (A) -> B): RestrictedCont<R, B>
redeem
Link copied to clipboard
open fun <B> redeem(f: (R) -> B, g: (A) -> B): RestrictedCont<Nothing, B>
redeemWith
Link copied to clipboard
open fun <R2, B> redeemWith(f: (R) -> RestrictedCont<R2, B>, g: (A) -> RestrictedCont<R2, B>): RestrictedCont<R2, B>
toEither
Link copied to clipboard
open fun toEither(): Either<R, A>
toValidated
Link copied to clipboard
open fun toValidated(): Validated<R, A>

Sources

common source
Link copied to clipboard