Created
February 27, 2020 07:10
-
-
Save ramunasjurgilas/04222e59e78ccf721e4346d256e5bc6c to your computer and use it in GitHub Desktop.
dropFirst() as filtering operator
This file contains 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
[1, 2, 3] | |
.publisher | |
.dropFirst() | |
.sink { print($0) } | |
// Output: | |
// 2 | |
// 3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment