diff --git a/arrow-libs/core/arrow-core/src/commonMain/kotlin/arrow/core/Either.kt b/arrow-libs/core/arrow-core/src/commonMain/kotlin/arrow/core/Either.kt index e95c6e17a19..c96a712caf6 100644 --- a/arrow-libs/core/arrow-core/src/commonMain/kotlin/arrow/core/Either.kt +++ b/arrow-libs/core/arrow-core/src/commonMain/kotlin/arrow/core/Either.kt @@ -1277,8 +1277,9 @@ public inline fun Either<*, B>.getOrElse(default: () -> B): B = * ``` * */ +@Deprecated("Duplicated API. Please use Either's member function orNull. This will be removed towards Arrow 2.0", ReplaceWith("orNull()")) public fun Either<*, B>.orNull(): B? = - getOrElse { null } + orNull() /** * Returns the value from this [Right] or allows clients to transform [Left] to [Right] while providing access to