In python I can do this:
def f((a, b)): return a + b d = (1, 2) f(d)
Here the passed in tuple i
With the upcoming Scala 3release schedule, and the improved tupled function feature, this will become possible:
Scala 3
tupled function
// val tuple = (1, 2) // def f(a: Int, b: Int): Int = a + b f.tupled(tuple) // 3
Play with it in Scastie