dev.forkhandles.partial.partials_2.kt Maven / Gradle / Ivy
// GENERATED CODE: DO NOT EDIT
package dev.forkhandles.partial
@Suppress("UNUSED_PARAMETER") fun ((A, B)->Result).partial(a: `$1`, b: B): ((A) -> Result) = fun(a: A): Result = this(a, b)
operator fun ((A, B)->Result).invoke(a: `$1`, b: B): ((A) -> Result) = this.partial(a, b)
@Suppress("UNUSED_PARAMETER") fun ((A, B)->Result).partial(a: A, b: `$1`): ((B) -> Result) = fun(b: B): Result = this(a, b)
operator fun ((A, B)->Result).invoke(a: A, b: `$1`): ((B) -> Result) = this.partial(a, b)
@Suppress("UNUSED_PARAMETER") fun ((A, B)->Result).partial(a: A): ((b: B) -> Result) = fun(b: B): Result = this(a, b)
operator fun ((A, B)->Result).invoke(a: A): ((b: B) -> Result) = this.partial(a)