DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’» is a community of 968,547 amazing developers

We're a place where coders share, stay up-to-date and grow their careers.

Create account Log in
Cover image for Variadic Parameters in Swift
Saif Ullah Sajid
Saif Ullah Sajid

Posted on

Variadic Parameters in Swift

In Swift functions with variadic parameter accepts zero or more values of a specified type. You use a variadic parameter to specify that the parameter can be passed a varying number of input values when the function is called. Write variadic parameters by inserting three period characters (...) after the parameter’s type name. Print is one the most commonly used examples.

Top comments (0)

🌚 Friends don't let friends browse without dark mode.

Sorry, it's true.