[swift-evolution] For... else

Lee M me at leemcdermott.co.uk
Fri Jan 22 10:22:09 CST 2016


This has likely been discussed already, but I haven't been able to find it
anywhere.
Example:

    let items: Int = []

    for item in items {
        print(item)
    }
    else {
        print("No items")
    }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160122/0a7e5862/attachment.html>


More information about the swift-evolution mailing list