Feb 25, 2021
Besides the issue with your example for variadic parameters, which others have pointed out, your explanation of function overloading is misleading. Function overloading has of course existed since Swift’s inception. What’s new is local function overloading, where a nested function can be overloaded the same as normal ones.