> On Feb 9, 2017, at 1:26 PM, Rick Mann via swift-users <swift-users@swift.org> 
> wrote:
> 
> Is there any concise way to write the following?
> 
> if let collection = someOptionalCollection
> {
>    for item in collection
>    {
>    }
> }

someOptionalCollection?.map {
    /* do something with $0 /*
}


_______________________________________________
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users

Reply via email to