Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

java 8 lambdas

Name: Anonymous 2012-09-21 18:05


List<String> names = Arrays.asList("Alice", "Bob", "Charlie", "Dave");
names
   .filter(e -> e.length() >= 4)
   .forEach(e -> { System.out.println(e); });



why aren't you part of the master race yet?

Name: Anonymous 2012-09-21 19:16

Wow, Algol 68 had ``lambdas'' 44 years ago. Maybe in another 44 years Java will finally include array slices and operator overloading!*

* Java was supposed to be C++ done right with the cruft removed. Pretty soon it'll just be C++.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List