import Foundation let strings = [ "one", "two", "three" ] let ints = strings.map { (string) -> Int in return string.count }