Re: Swift 2.0

2015-07-02 Thread lowell!
Apple has a prerelease version for Swift 2 on the iBooks Store: https://itunes.apple.com/us/book/swift-programming-language/id1002622538 ——lowell > On Jul 2, 2015, at 9:59 AM, William Squires wrote: > > There is (or was) a PDF you could get in the Bookstore.app direct from Apple > vi

Re: Swift 2.0

2015-07-02 Thread John Tsombakos
There’s this: The Swift Programming Language (Swift 2 Prerelease) https://itunes.apple.com/us/book/swift-programming-language/id1002622538?mt=11 > On Jul 2, 2015, at 12:59 PM, William Squires wrote: > > There is

re Swift 2.0

2015-06-29 Thread Michael de Haan 
>>> 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

Re: Swift 2.0 difficulty

2015-06-29 Thread Roland King
> 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 confusing to me, is that the c