Last active
January 28, 2016 14:26
-
-
Save Eluss/e723290d5c47a5c047b5 to your computer and use it in GitHub Desktop.
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
signal.skipRepeats().observeNext {(value) -> () in | |
// print values that are not duplicates of the immedately preceding value | |
print(value) | |
} | |
signal.observeNext {(value) -> () in | |
// values without transformations | |
print(value) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment