Iterable::forEach not returning Iterable
Maurizio Cimadamore
maurizio.cimadamore at oracle.com
Tue May 22 13:13:19 PDT 2012
On 22/05/12 19:37, David Conrad wrote:
> List<File> files...
> files.filter( File::isFile ).map(tee((File f) -> { Log.log(f); return f;
> })).filter( ... ).map( ConfigurationFile::new );
>
> I had to qualify the type of the lambda parameter, though; the compiler
> couldn't infer it. Ah, well.
RIght, because the prototype doesn't support nested generic method call,
so the call to tee nested into map yields Object for T - but stay tuned,
as a solution is in the works ;-)
Maurizio
More information about the lambda-dev
mailing list