[swift-evolution] Proposal: "inout" in for loops
Amir Michail
a.michail at me.com
Fri Dec 11 07:12:33 CST 2015
Examples:
var x=[1,2,3]
for inout v in x {
v++
}
for inout d in d1, d2, d3 { // can’t use list here as it would result in copying of dictionaries
d.removeAll()
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20151211/b29b8aea/attachment.html>
More information about the swift-evolution
mailing list