In JavaScript there is the nice spread operator.
Example from MDN:
var parts = ['shoulders', 'knees'];
var lyrics = ['head', ...parts, 'and', 'toes'];
// ["head", "shoulders", "knees", "and", "toes"]
Is there an equivalent in Scala?
In JavaScript there is the nice spread operator.
Example from MDN:
var parts = ['shoulders', 'knees'];
var lyrics = ['head', ...parts, 'and', 'toes'];
// ["head", "shoulders", "knees", "and", "toes"]
Is there an equivalent in Scala?