Stop using curried function declaration syntax.
It will be removed from future versions of Swift.
This commit is contained in:
@@ -11,9 +11,11 @@ import XCTest
|
||||
|
||||
class LazySplitGenerator_Tests: XCTestCase {
|
||||
|
||||
func lazySplitToArray (allowEmptySlices allowEmptySlices: Bool) (_ s: String) -> [String] {
|
||||
let seq: LazySplitSequence = s.characters.lazy.split("," as Character, allowEmptySlices: allowEmptySlices)
|
||||
return seq.map {String($0)}
|
||||
func lazySplitToArray (allowEmptySlices allowEmptySlices: Bool) -> (String) -> [String] {
|
||||
return { s in
|
||||
let seq: LazySplitSequence = s.characters.lazy.split("," as Character, allowEmptySlices: allowEmptySlices)
|
||||
return seq.map {String($0)}
|
||||
}
|
||||
}
|
||||
|
||||
func testStringsLazySplit_AllowingEmptySlices () {
|
||||
|
||||
Reference in New Issue
Block a user