Note. This also applies to Swift 3.0.
When I try to use the reduce function, I get an error message:
reduce is not available: call the reduce () method in the sequence
I already figured out how to do this with the enumerate() function, but I cannot solve this problem. Here is the line of code that returns the error:
var hashValue: Int { return reduce(blocks, 0) { $0.hashValue ^ $1.hashValue } }
source share