All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.arrow.core.utils.kt Maven / Gradle / Ivy

There is a newer version: 2.0.1
Show newest version
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