Skip to content

Instantly share code, notes, and snippets.

@tompee26
Created May 2, 2018 05:19
Show Gist options
  • Save tompee26/8cbee48caabbaff549107b00fb92e14e to your computer and use it in GitHub Desktop.
Save tompee26/8cbee48caabbaff549107b00fb92e14e to your computer and use it in GitHub Desktop.
Lazy test
Stream.of(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
.filter(input -> {
Log.d("Lazy test", "Filtering: " + input);
return input > 5;
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment