@morgen-peschke shapeless has several gadgets which are probably relevant to your example. It has type classes which can convert between arbitrary arity functions and single argument functions which take an HList
argument. shapeless’s ProductArgs
and RecordArgs
traits might also be relevant.
I think we can most likely do better in Dotty.