Skip to content

Instantly share code, notes, and snippets.

@oehme
Created July 18, 2014 09:17
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oehme/186d779f23d3514ad6e2 to your computer and use it in GitHub Desktop.
Save oehme/186d779f23d3514ad6e2 to your computer and use it in GitHub Desktop.
A simple RxJava exmample in XTend
Observable.from("Foo", "Bar", null)
.filter[startsWith("F")]
.subscribe(
[println(it)],
[println("error")],
[|println("done")]
)
//prints Foo and error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment