Stream.concat

Remi Forax forax at univ-mlv.fr
Sat Jul 12 15:41:13 UTC 2014


I was not able to find the answer to my question in the archive,
why Stream.concat is not implemented like this ?

   @SafeVarargs
   public static <T> Stream<T> concat(Stream<T>... streams) {
     return Arrays.stream(streams).flatMap(Function.identity());
   }

Rémi



More information about the lambda-dev mailing list