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

Higher-order functions

Higher-order functions can receive other functions as their parameters. Swift provides higher-order functions such as map, filter, and reduce. Also, in Swift, we can develop our own higher-order functions and DSLs.