Skip to content

Instantly share code, notes, and snippets.

@Eluss
Last active January 28, 2016 14:26
Show Gist options
  • Save Eluss/e723290d5c47a5c047b5 to your computer and use it in GitHub Desktop.
Save Eluss/e723290d5c47a5c047b5 to your computer and use it in GitHub Desktop.
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