Example playground for the article http://www.objc.io/issue16/functional-swift-apis.html