rom Apple
> vis-a-vis the original Swift (1.0). Has this document been updated (for Swift
> 2.0) or even a new "changes to Swift" document, or are we waiting for the
> "official" release of Xcode 7, and/or a new OS X 10.11 or some such?
> _
gt;
> There is (or was) a PDF you could get in the Bookstore.app direct from Apple
> vis-a-vis the original Swift (1.0). Has this document been updated (for Swift
> 2.0) or even a new "changes to Swift" document, or are we waiting for the
> "official" release of X
There is (or was) a PDF you could get in the Bookstore.app direct from Apple
vis-a-vis the original Swift (1.0). Has this document been updated (for Swift
2.0) or even a new "changes to Swift" document, or are we waiting for the
"official" release of Xcode 7, and/or a ne
>>>
var currentValue = 1
let newNewGenerator = anyGenerator
{
()->Int? in
let previousValue = currentValue
currentValue *= 2
return ( previousValue > 20 ) ? nil : previousValue
}
let newGeneratedArray = Array( newNewGenerator )
For some reason you have to spe
> On 29 Jun 2015, at 14:37, Michael de Haan wrote:
>
>
> Hi All
> I am looking at Swift 2.0. The compiler has converted the code below to the
> “latest” Swift syntax. This causes the error shown. I have spent a few days
> trying to get this to compile. What is confusi
Hi All
I am looking at Swift 2.0. The compiler has converted the code below to the
“latest” Swift syntax. This causes the error shown. I have spent a few days
trying to get this to compile. What is confusing to me, is that the code,
listed last (func removeAnElemen…..) does compile ( all in