Skip to content

Instantly share code, notes, and snippets.

@amay077
Created August 1, 2012 13:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amay077/3227035 to your computer and use it in GitHub Desktop.
Save amay077/3227035 to your computer and use it in GitHub Desktop.
reactive4java old sample
Reactive.select(
Reactive.where(
Reactive.range(1, 10),
new Func1<Integer, Boolean>() {
@Override
public Boolean invoke(Integer param1) {
return param1 % 2 == 0;
}
}),
new Func1<Integer, Integer>() {
@Override
public Integer invoke(Integer param1) {
return param1 * 3;
}
}).register(Reactive.println());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment