[swift-evolution] Spread Operator as Shorthand for Map

Al Skipp al_skipp at fastmail.fm
Wed Dec 16 11:32:15 CST 2015


> On 16 Dec 2015, at 17:20, Matthew Johnson via swift-evolution <swift-evolution at swift.org> wrote:
> 
> Joe Groff noted syntactic ambiguity caused by omitting $0.  Unless that potential ambiguity could be resolved in some way this wouldn’t actually work.  It does work if you include $0:
> 
> cars.map{$0.make}

Hey, we’re back where we started! ; )


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20151216/b7067e20/attachment.html>


More information about the swift-evolution mailing list