Puzzler: Stream.of(null)

Brian Goetz brian.goetz at oracle.com
Sat Sep 14 08:37:01 PDT 2013


Heh, cute.

On 9/14/2013 11:33 AM, Remi Forax wrote:
> What this line does ?
>    Stream.of(null).forEach(System.out::println);
>
> EnumSet solve that issue by declaring of() like this of(T, T...).
>
> cheers,
> Rémi
>
>
>


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