Flatmap example
Paul Sandoz
paul.sandoz at oracle.com
Mon Dec 2 07:08:54 PST 2013
On Dec 2, 2013, at 3:31 PM, "Millies, Sebastian" <Sebastian.Millies at softwareag.com> wrote:
> I can't get the second variant (without the inner class) to compile with b117.
>
Compiles and runs for me against the tip of tl.
> The method reference in ".map(p::matcher)" seems illegal, and explicitly typing the Lambda-Parameter
> "p" as "Pattern" leads to an Incompatible Types error. I have to cast the function that goes into the flatMap
> to "Function<Pattern, Stream<String>>". Why is that?
>
I guess passing compile glitch or bug that was recently fixed.
Paul.
More information about the lambda-dev
mailing list