Skip to content
Mahmoud Ben Hassine edited this page Nov 8, 2015 · 5 revisions

concat

Synopsis

Create a UnixStream by concatenating two streams.

Example

Stream<String> stream1 = Stream.of("a", "b");
Stream<String> stream2 = Stream.of("c", "d");

UnixStream.concat(stream1, stream2)
       .to(stdOut()); //prints "a", "b", "c", "d" 
Clone this wiki locally