Pass collection to class in Scala

In Python you can pass arguments from a list by that:

def f(x, y, w=0, h=0):

print "position: %s, %s -- shape: %s, %s"%(x, y, w, h)

position = (3,4) size = {‘h’: 10, ‘w’: 20}

f( *position, **size)

position: 3, 4 — shape: 20, 10

How would be the equivalent to f(*position) in Scala? Could not find any example online.

All topic