More on Parameters
You already know how to use parameters in functions. As discussed in the following sections, Swift also provides the following:
■ External parameter names
■ Default parameter values
■ Variadic parameters
■ In-out parameters
■ Functions as parameters
Get Learning Swift™ Programming now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.