Scala 3 - Extract Tuple of wrappers and InverseMap on First Order Type
问题 I am trying to create a function, which takes a tuple of higher-kinded types and applies a function to the types within the higher-kinded types. In the example below, there is a trait Get[A] which is our higher-kinded type. There is also a tuple of Get's: (Get[String],Get[Int]) as well as function from (String,Int) => Person . Scala-3 has a Match-Type called InverseMap which converts the type (Get[String], Get[Int]) into what is essentially the type (String,Int). So the ultimate goal is to