Using Variadic Parameters in Swift

Photo by Diane Picchiottino on Unsplash

When coding in Swift, there is a function that all developers undeniably call generously and without much thinking, and that is print. We all use it every day, everywhere; and most of the times, it's our path towards fast and dirty debugging.

Even though print seems to be winning the battle among the most used commands in Swift, have you ever wondered how it makes it possible to accept an arbitrary…