Last active
June 25, 2019 16:12
-
-
Save Arrlindii/03043c45d9649615071f9f7331f86692 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let testData = (1...1000000).map { _ in randomString(length: 8) } | |
| func testCombineSwift() { | |
| _ = Publishers.Sequence(sequence: testData) | |
| .flatMap { Publishers.Just($0) } | |
| .map {$0.lowercased()} | |
| .removeDuplicates() | |
| .filter({$0.contains("a")}) | |
| .dropFirst(2) | |
| .sink(receiveValue: { value in | |
| print(value) | |
| }) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment