= partial()): (P2) R {
return { p2: P2 this(p1, p2) }
}
fun <P1, P2, R> Function2<P1, P2, R>.invoke(partial1: Partial<P1> = partial(), p2: P2): (P1) R {
return { p1: P1 this(p1, p2) }
}
fun <P1, P2, P3, R> Function3<P1, P2, P3, R>.invoke(p1: P1, partial2: Partial<P2> = partial(), partial3: Partial<P3> = partial()): (P2, P3) R {
return { p2: P2, p3: P3 this(p1, p2, p3) }
}
fun <P1, P2, P3, R> Function3<P1, P2, P3, R>.invoke(partial1: Partial<P1> = partial(), p2: P2, partial3: Partial<P3> = partial()): (P1, P3) R {
return { p1: P1, p3: P3 this(p1, p2, p3) }
}
fun <P1, P2, P3, R> Function3<P1, P2, P3, R>.invoke(partial1: Partial<P1> = partial(), partial2: Partial<P2> = partial(), p3: P3): (P1, P2) R {
return { p1: P1, p2: P2 this(p1, p2, p3) } } //All the way to Function22…. This file has 2532 lines