The length of the rest args acts like a discriminator of the signature. If the function is called with one parameter it's the first signature, two parameters for the second signature, and so on.
1 likes 0 replies
?
The length of the rest args acts like a discriminator of the signature. If the function is called with one parameter it's the first signature, two parameters for the second signature, and so on.
1 likes 0 replies