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

arrow.meta.internal.Noop.kt Maven / Gradle / Ivy

There is a newer version: 1.6.3-alpha.2
Show newest version
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