Am 20.09.2013 20:46, schrieb Mandy Chung:
[...]
I have some trouble in expressing the skipToSecondPredicate without side
effect in lambda. With the help from Paul Sandoz (thanks Paul), if I
had a stack stream, Thread.getCaller() method would be like this:
stream.filter(e -> return
REFLECTION_CLASSES.contains(e->getClassName()))
.skip(2).findFirst();
and here I was and tried to show you what a Stream really is... I should
have read that mail before the other ;) Only I was irritated not to find
skip in
http://download.java.net/lambda/b78/docs/api/java/util/stream/Stream.html I
have seen skip in several examples. Anyway... has nothing to do with the
matter here
bye Jochen
--
Jochen "blackdrag" Theodorou - Groovy Project Tech Lead
blog: http://blackdragsview.blogspot.com/
german groovy discussion newsgroup: de.comp.lang.misc
For Groovy programming sources visit http://groovy-lang.org