StackOverflow 文档 Swift Language 教程 作为 Swift 的一等公民 从另一个函数作为返回类型 从另一个函数作为返回类型 Created: November-22, 2018 // function as return type print(math.performComplexOperation(valueOne: 4)(5)) 输出: 9 将函数作为参数传递给另一个函数,从而创建一个高阶函数