An Xcode playground demonstrating the new features in Swift 4.2.
Written by Ole Begemann, June 2018.
The playground requires Swift 4.2. Xcode 10 includes Swift 4.2 by default. Download the latest Xcode 10 beta.
You can also run it in Xcode 9.4, but you need to install the latest Swift 4.2 snapshot from swift.org (don’t worry, it’s easy).
See also: my What’s new in Swift 4.0 playground from 2017.