diff --git a/src/main/kotlin/com/github/michaelbull/result/Get.kt b/src/main/kotlin/com/github/michaelbull/result/Get.kt index 111bed2..e520d6d 100644 --- a/src/main/kotlin/com/github/michaelbull/result/Get.kt +++ b/src/main/kotlin/com/github/michaelbull/result/Get.kt @@ -71,7 +71,7 @@ inline infix fun Result.getErrorOr(default: () -> E): E { * Returns the [value][Ok.value] if this [Result] is [Ok], otherwise * the [transformation][transform] of the [error][Err.error]. * - * - Elm: [Result.extract](http://package.elm-lang.org/packages/circuithub/elm-result-extra/1.4.0/Result-Extra#extract) + * - Elm: [Result.extract](http://package.elm-lang.org/packages/elm-community/result-extra/2.2.0/Result-Extra#extract) * - Rust: [Result.unwrap_or_else](https://doc.rust-lang.org/src/core/result.rs.html#735-740) */ inline infix fun Result.getOrElse(transform: (E) -> V): V { diff --git a/src/main/kotlin/com/github/michaelbull/result/Iterable.kt b/src/main/kotlin/com/github/michaelbull/result/Iterable.kt index 71660ce..1507bb1 100644 --- a/src/main/kotlin/com/github/michaelbull/result/Iterable.kt +++ b/src/main/kotlin/com/github/michaelbull/result/Iterable.kt @@ -52,14 +52,14 @@ inline fun List.foldRight( /** * Combines a vararg of [Results][Result] into a single [Result] (holding a [List]). * - * - Elm: [Result.Extra.combine](http://package.elm-lang.org/packages/circuithub/elm-result-extra/1.4.0/Result-Extra#combine) + * - Elm: [Result.Extra.combine](http://package.elm-lang.org/packages/elm-community/result-extra/2.2.0/Result-Extra#combine) */ fun combine(vararg results: Result) = results.asIterable().combine() /** * Combines an [Iterable] of [Results][Result] into a single [Result] (holding a [List]). * - * - Elm: [Result.Extra.combine](http://package.elm-lang.org/packages/circuithub/elm-result-extra/1.4.0/Result-Extra#combine) + * - Elm: [Result.Extra.combine](http://package.elm-lang.org/packages/elm-community/result-extra/2.2.0/Result-Extra#combine) */ fun Iterable>.combine(): Result, E> { return Ok(map { diff --git a/src/main/kotlin/com/github/michaelbull/result/Map.kt b/src/main/kotlin/com/github/michaelbull/result/Map.kt index 39c3a14..46e3fb1 100644 --- a/src/main/kotlin/com/github/michaelbull/result/Map.kt +++ b/src/main/kotlin/com/github/michaelbull/result/Map.kt @@ -35,7 +35,7 @@ inline infix fun Result.mapError(transform: (E) -> F): Result Result.mapBoth( @@ -48,7 +48,6 @@ inline fun Result.mapBoth( } } -// TODO: better name? /** * Maps this [Result][Result] to [Result][Result] by applying either the [success] function * if this [Result] is [Ok], or the [failure] function if this [Result] is an [Err].