In python I can do this:
def f((a, b)): return a + b d = (1, 2) f(d)
Here the passed in tuple i
object RandomExperiments extends App{ def takeTuple(t:(Int,Int))=print (s"$t ${t._1}\n") takeTuple(1,3) takeTuple((1,3)) takeTuple(((1,3))) }
prints:
(1,3) 1 (1,3) 1 (1,3) 1