[swift-evolution] For... else

Ben Langmuir blangmuir at apple.com
Fri Jan 22 12:22:45 CST 2016


Previous discussion here:
https://lists.swift.org/pipermail/swift-evolution/Week-of-Mon-20151207/001110.html


> On Jan 22, 2016, at 8:22 AM, Lee M via swift-evolution <swift-evolution at swift.org> wrote:
> 
> 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")
>     }
> _______________________________________________
> swift-evolution mailing list
> swift-evolution at swift.org
> https://lists.swift.org/mailman/listinfo/swift-evolution



More information about the swift-evolution mailing list