How to use shorthand argument names in Swift ?

Swift provides us with shorthand argument names that can be used instead of parameter names.

The shorthand argument names are given by $0, $1, $2 etc…

Leave a Reply