Last active
June 22, 2019 20:09
-
-
Save Arrlindii/7f0d9e79b981f1fd89046e0e139c5ec7 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
| _ = Publishers.Sequence(sequence: [1,2,3,4,5]) | |
| .flatMap { Publishers.Just($0) } | |
| .scan(0, +) | |
| .sink(receiveValue: { value in | |
| print(value) | |
| }) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment