arrow.meta.internal.Noop.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of arrow-meta Show documentation
Show all versions of arrow-meta Show documentation
Functional companion to Kotlin's Standard Library
package arrow.meta.internal
object Noop {
val effect0: () -> Unit = {}
val effect1: (Any?) -> Unit = { _ -> Unit }
val effect2: (Any?, Any?) -> Unit = { _, _ -> Unit }
val effect3: (Any?, Any?, Any?) -> Unit = { _, _, _ -> Unit }
val effect4: (Any?, Any?, Any?, Any?) -> Unit = { _, _, _, _ -> Unit }
val effect5: (Any?, Any?, Any?, Any?, Any?) -> Unit = { _, _, _, _, _ -> Unit }
val effect6: (Any?, Any?, Any?, Any?, Any?, Any?) -> Unit = { _, _, _, _, _, _ -> Unit }
fun nullable1(): (Any?) -> A? = { null }
fun nullable2(): (Any?, Any?) -> A? = { _, _ -> null }
fun nullable3(): (Any?, Any?, Any?) -> A? = { _, _, _ -> null }
fun nullable4(): (Any?, Any?, Any?, Any?) -> A? = { _, _, _, _ -> null }
fun nullable5(): (Any?, Any?, Any?, Any?, Any?) -> A? = { _, _, _, _, _ -> null }
fun nullable6(): (Any?, Any?, Any?, Any?, Any?, Any?) -> A? = { _, _, _, _, _, _ -> null }
fun nullable7(): (Any?, Any?, Any?, Any?, Any?, Any?, Any?) -> A? = { _, _, _, _, _, _, _ ->
null
}
fun emptyCollection1(): (Any?) -> Collection = { emptyList() }
fun emptyList1(): (Any?) -> List = { emptyList() }
fun emptyCollection2(): (Any?, Any?) -> Collection = { _, _ -> emptyList() }
fun emptyList2(): (Any?, Any?) -> List = { _, _ -> emptyList() }
fun emptyCollection3(): (Any?, Any?, Any?) -> Collection = { _, _, _ -> emptyList() }
fun emptyCollection4(): (Any?, Any?, Any?, Any?) -> Collection = { _, _, _, _ ->
emptyList()
}
fun emptyCollection5(): (Any?, Any?, Any?, Any?, Any?) -> Collection = { _, _, _, _, _ ->
emptyList()
}
val boolean1True: (Any?) -> Boolean = { _ -> true }
val boolean1False: (Any?) -> Boolean = { _ -> false }
val boolean2True: (Any?, Any?) -> Boolean = { _, _ -> true }
val boolean2False: (Any?, Any?) -> Boolean = { _, _ -> false }
val boolean3True: (Any?, Any?, Any?) -> Boolean = { _, _, _ -> true }
fun string1(): (A) -> String = { _ -> "" }
fun string2(): (A, B) -> String = { _, _ -> "" }
fun string3(): (A, B, C) -> String = { _, _, _ -> "" }
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy