Created
July 18, 2014 09:17
-
-
Save oehme/186d779f23d3514ad6e2 to your computer and use it in GitHub Desktop.
A simple RxJava exmample in XTend
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
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