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