Skip to content

Instantly share code, notes, and snippets.

@john77eipe
Created April 16, 2017 13:54
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 john77eipe/c5684a32c5dc9d61c0a7d86238fe6c48 to your computer and use it in GitHub Desktop.
Save john77eipe/c5684a32c5dc9d61c0a7d86238fe6c48 to your computer and use it in GitHub Desktop.
//no changes to vendor
//in client just this line of code ;-)
int result = MathUtility.sum(listOfInts, (Integer i)->{return (i<3);});
//still shorter way of doing it
int result = MathUtility.sum(listOfInts, i ->i<3);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment