Swift Functional Programming(Second Edition)
上QQ阅读APP看书,第一时间看更新

First-class functions

Functions are first-class types in Swift, just as in languages such as Ruby, JavaScript, and Go, and can be stored, passed, and returned. First-class functions empower the FP style in Swift.