flatMap ambiguity

Maurizio Cimadamore maurizio.cimadamore at oracle.com
Tue Feb 26 14:54:20 PST 2013


On 26/02/13 21:47, Dan Smith wrote:
> Note also that an invocation like the following will always produce a Stream<Object>:
>
> stream.flatMap((x, sink) -> sink.accept("x")).filter(...)....
Mostly unrelated: the current implementation will actually give up in 
such cases, issuing a 'cyclic inference' error message to give 
opportunity to add more type info.

Maurizio


More information about the lambda-libs-spec-observers mailing list