mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
stdlib: protocol extensions: de-underscore reduce()
Swift SVN r28237
This commit is contained in:
@@ -1212,7 +1212,7 @@ SequenceTypeAlgorithms.test("reduce") {
|
||||
let s = MinimalSequence<OpaqueValue<Int>>(
|
||||
test.sequence.map { OpaqueValue($0) })
|
||||
var timesClosureWasCalled = 0
|
||||
let result = s._prext_reduce(OpaqueValue<[Int]>([])) {
|
||||
let result = s.reduce(OpaqueValue<[Int]>([])) {
|
||||
(partialResult: OpaqueValue<[Int]>, element: OpaqueValue<Int>)
|
||||
-> OpaqueValue<[Int]> in
|
||||
++timesClosureWasCalled
|
||||
|
||||
Reference in New Issue
Block a user