A workaround is to declare two local variables:
let e = zip(a,b).reduce(0) { acc, tuple in
let value1 = tuple.0
let value2 = tuple.1
return acc + value1 + value2
}
You can also get away with one assignment:
let ok = zip(a,b).reduce(0) { acc, tuple in
let (value1, value2) = tuple
return acc + value1 + value2
}
Best,
Krzysztof_______________________________________________ swift-users mailing list [email protected] https://lists.swift.org/mailman/listinfo/swift-users
