I'm not too sure what the correct name for this would be, but is there a way of setting/changing more than one of an object's attributes at once in Scala? (where the object has already been initialised)
I'm looking for something of the sort:
sampleObject.{ name = "bob", quantity = 5 } as opposed to:
sampleObject.name = "bob" sampleObject.quantity = 5 Does Scala have any such functionality? (and what is the correct term for it?)