nonJvmMain.arrow.core.composition-js.kt Maven / Gradle / Ivy
package arrow.core
public actual infix fun ((P1, P2) -> IP).andThen(f: (IP) -> R): (P1, P2) -> R =
{ p1, p2 -> f(this(p1, p2)) }
public actual infix fun (() -> IP).andThen(f: (IP) -> R): () -> R =
{ f(this()) }
public actual infix fun ((P1) -> IP).andThen(f: (IP) -> R): (P1) -> R =
{ p1 -> f(this(p1)) }
public actual infix fun ((IP) -> R).compose(f: (P1) -> IP): (P1) -> R =
{ p1 -> this(f(p1)) }
© 2015 - 2025 Weber Informatics LLC | Privacy Policy