Skip to content

Instantly share code, notes, and snippets.

@ramunasjurgilas
Created February 27, 2020 07:10
Show Gist options
  • Save ramunasjurgilas/04222e59e78ccf721e4346d256e5bc6c to your computer and use it in GitHub Desktop.
Save ramunasjurgilas/04222e59e78ccf721e4346d256e5bc6c to your computer and use it in GitHub Desktop.
dropFirst() as filtering operator
[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