As a Swift developer you might have seen three period characters (...) after a function parameter’s type name. func handle(_ numbers: Double...) { } This is a variadic parameter. According to the Swift documentation A variadic parameter accepts ze...

Markdown supported · ⌘↵ to post
No responses yet.