Closed Taarna closed 8 years ago
result should be var, not let.
result
var
let
func computeBoolArray(xs: [Int], f: Int -> Bool) -> [Bool] { let result: [Bool] = [] for x in xs { result.append(f(x)) } return result }
Fixed in the next update... thanks!
result
should bevar
, notlet
.