[swift-evolution] Spread Operator as Shorthand for Map

Al Skipp al_skipp at fastmail.fm
Wed Dec 16 11:01:44 CST 2015


> On 16 Dec 2015, at 16:51, Dennis Lysenko via swift-evolution <swift-evolution at swift.org> wrote:
> 
> Perhaps cars.map(Car.make)? We already have method references, why define a new syntax? 

That would actually refer to a static function on ‘Car’, not a method, or property on an instance of ‘Car’.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20151216/07fdfb43/attachment.html>


More information about the swift-evolution mailing list