p
-.js
p
thanks Paco 👏
p
de nada tocayo
p
en otra vida sería Paco sí 😂
the thing is that validate is a function which receives those 4 parameters, and not a Tuple4, so reference function will not match
p
There's a helper somewhere to convert between them, IIRC
p
is this in Arrow? I suppose it would be something like:
Copy code
fun <A, B, C, D, E> ((A, B, C, D) -> E).tupled() = { params: Tuple4<A, B, C, D> ->
        this(params.a, params.b, params.c, params.d)
    }
implemented by myself just for fun 😂
p
it may be in arrow syntax, but you solved it properly 😄
if you could PR a couple more arities, it'd be great 😄
p
in this case, the need is the conversion between functions and TupleN, not Kotlin´s Pair/Triple, would you find useful to make a PR with this? I could work on it 🙂
p
Yeah we ignorem kotlin’s for now. A PR would b great!
👌 1