📅  最后修改于: 2022-03-11 15:00:58.409000             🧑  作者: Mango
代码示例1
import Foundation
let strings = [
"one",
"two",
"three"
]
let ints = strings.map { (string) -> Int in
return string.count
}