[swift-users] Variadic parameter in function type
zh ao
owenzx at gmail.com
Mon Aug 29 02:44:23 CDT 2016
It is suggested to put ... part at the end.
Zhaoxin
Get Outlook for iOS
On Mon, Aug 29, 2016 at 1:19 PM +0800, "Jin Wang via swift-users" <swift-users at swift.org> wrote:
Hey guys,
Can anyone tell me how you handle the following scenario after SE-0111 gets implemented?
let output: (_ items: Any..., _ separator: String, _ terminator: String) -> Void = printoutput("Apple", "Banana", ",", "
”)// Error: Missing argument for parameter #2 in call
Thanks,Jin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20160829/534d34f0/attachment.html>
More information about the swift-users
mailing list