我遇到了这个错误:
func compactCoords(coords: [Int]) -> [Int]{
return coords.filter({ (value) -> Bool in
return value != 0
})
}
无法使用类型为“(@noescape (Int) throws -> Bool)”的参数列表调用“filter”
谢谢您的帮助!