Skip to content

Instantly share code, notes, and snippets.

@mcupak
Created November 7, 2017 22:14
Show Gist options
  • Select an option

  • Save mcupak/2abf50fa23c000a1a736955b43c0704f to your computer and use it in GitHub Desktop.

Select an option

Save mcupak/2abf50fa23c000a1a736955b43c0704f to your computer and use it in GitHub Desktop.
jshell> IntStream.iterate(0, i -> i < 10, i -> i + 2).forEach(System.out::println)
0
2
4
6
8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment