Aha. This changed recently, Iterable had a lot of defender methods before.
On Thu, Oct 25, 2012 at 6:13 PM, clay <[email protected]> wrote: > No, Iterable is a single method interface. It has only: "Iterator<T> > iterator();" > > java.util.streams.Stream has flatMap (and the collections implement Stream) > > > On Thursday, October 25, 2012 2:53:50 PM UTC-5, Ricky Clarkson wrote: >> >> Yep, Iterable has a whole bunch of methods including flatMap. >> >> On Thu, Oct 25, 2012 at 4:46 PM, Simon Ochsenreither >> <[email protected]> wrote: >> > >> >> And here is the rub: Optional would be the only type in the JDK that >> >> has >> >> this property. >> >> >> >> It would be a bit like being the only person on the planet with a fax >> >> machine. If all that I can do is composing Optionals with other >> >> Optionals, >> >> the value is severely limited. Once/if Optional gains flatMap, won't >> >> you >> >> want List to get it as well? And Map? And TreeSets? >> > >> > >> > It seems to be a tradition that some people never do their research... >> > >> > FYI: >> > http://cr.openjdk.java.net/~briangoetz/lambda/collections-overview.html >> > >> > -- >> > You received this message because you are subscribed to the Google >> > Groups >> > "Java Posse" group. >> > To view this discussion on the web visit >> > https://groups.google.com/d/msg/javaposse/-/jARmw54ckK0J. >> > >> > To post to this group, send email to [email protected]. >> > To unsubscribe from this group, send email to >> > [email protected]. >> > For more options, visit this group at >> > http://groups.google.com/group/javaposse?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "Java Posse" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/javaposse/-/6d4PBBWGSHEJ. > > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/javaposse?hl=en. -- You received this message because you are subscribed to the Google Groups "Java Posse" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/javaposse?hl=en.
