Skip to content

Instantly share code, notes, and snippets.

@mcupak
Created November 7, 2017 22:13
Show Gist options
  • Save mcupak/2250b3ee512cbd35d16b4bd4e3d430cc to your computer and use it in GitHub Desktop.
Save mcupak/2250b3ee512cbd35d16b4bd4e3d430cc to your computer and use it in GitHub Desktop.
jshell> IntStream.iterate(0, i -> i + 2).filter(j -> j < 10).forEach(System.out::println)
0
2
4
6
8
-2147483648
-2147483646
-2147483644
-2147483642
-2147483640
-2147483638
-2147483636
-2147483634
-2147483632
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment