Skip to content

Instantly share code, notes, and snippets.

@angellandros
Created January 11, 2019 13:06
Show Gist options
  • Save angellandros/a36bb4a469fdc0d539e09df86bf02b27 to your computer and use it in GitHub Desktop.
Save angellandros/a36bb4a469fdc0d539e09df86bf02b27 to your computer and use it in GitHub Desktop.
final int s = ImmutableList.of(1, 2, 3)
.stream()
.map(x -> x * 2)
.reduce(0, (x, y) -> x + y);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment