[swift-evolution] Shortcut for creating arrays

Arsen Gasparyan to.arsen.gasparyan at gmail.com
Fri Apr 8 08:20:19 CDT 2016

Hey guys,

Very often we need to create an array strings. It's a routine task and I
really like shortcut in Ruby that shortcut makes everyday coding a little
bit easier and fun:

   words = %w[rats live on no evil star]

What do you think about adding something like this in Swift?

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

More information about the swift-evolution mailing list