A multiplatform Result monad for modelling success or failure operations.
ISC License
Bot releases are visible (Hide)
Published by michaelbull about 5 years ago
fold
as an alias to mapBoth
(4eb5d80f9115578c63ce8360c240caaea2897e0c)on{Success,Failure}
(3a3b5415a748ad75bc133097e9d7b7cfd0d73cb8)
onSuccess
/onFailure
calls that may perform arbitrary side-effects, such as logging.Result.recover
(b5aab62af4f74a9a642f53a3c8f27bd47501bc32)
getOrElse
but returns an Ok
of the transformed errorrepositories {
maven { url = 'https://dl.bintray.com/michaelbull/maven' }
}
dependencies {
compile 'com.michael-bull.kotlin-result:kotlin-result:1.1.0'
}
mapAll
mapResult
mapResultTo
mapResultNotNull
mapResultNotNullTo
mapResultIndexed
mapResultIndexedTo
mapResultIndexedNotNull
mapResultIndexedNotNullTo
toResultOr
(410563b621d3e18860b1be92a07af9338d9274e1)
Result
s. An example is shown in the README.