Yes I know about the spread operator. I’d prefer not to force application programs to use it for these reasons:
- There might be hundreds of elements in the array. Could that cause runaway stack issues or poor performance?
- It’s uglier than it needs to be for application programmers who use my library. The library is available for other programming languages - I would hope that the use would be as elegant for application programmers in Kotlin as it is in Swift and Java.