-
Notifications
You must be signed in to change notification settings - Fork 15
concat
Mahmoud Ben Hassine edited this page Nov 8, 2015
·
5 revisions
Create a UnixStream by concatenating two streams.
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"
UnixStream is created with passion by Mahmoud Ben Hassine