
commonMain.arrow.core.utils.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of arrow-core Show documentation
Show all versions of arrow-core Show documentation
Functional companion to Kotlin's Standard Library
package arrow.core
public fun constant(t: T): (P1) -> T = { _: P1 -> t }
public typealias Predicate = (T) -> Boolean
public fun Predicate.mapNullable(): (T?) -> Boolean = { t -> t?.let { this@mapNullable(it) } ?: false }
public const val DeprecatedUnsafeAccess: String = "This function is unsafe and will be removed in future versions of Arrow. Replace or import `arrow.syntax.unsafe.*` if you wish to continue using it in this way"
public const val DeprecatedAmbiguity: String = "This function is ambiguous and will be removed in future versions of Arrow"
© 2015 - 2025 Weber Informatics LLC | Privacy Policy