The splat is not needed here -- it still works because `lengths` comes in as an array, the `*` splats it out to a list of parameters, and the assignment turns it back into an array.