Swift学习笔记 - 函数与闭包
摘要:import Foundation//1.函数的定义与调用//以 func 作为前缀,返回箭头 -> 表示函数的返回类型func sayHello(name: String) -> String { let greeting = "Hello " + name + "!" return ...
阅读全文
posted @ 2014-07-27 13:32
posted @ 2014-07-27 13:32
posted @ 2014-07-12 22:24