Loading... (original) (raw)

Stream.concat(s, Stream.emptyStream()) should return s or a stream equivalent to s.

Note that it could be any empty stream, so the implementation needs to determine if the streams spliterator is SIZED with an estimate of 0,