-
Notifications
You must be signed in to change notification settings - Fork 15
reverse
Mahmoud Ben Hassine edited this page Nov 8, 2015
·
3 revisions
Reverse elements in a stream.
N/A
Stream<String> stream = Stream.of("a", "b");
UnixStream.unixify(stream)
.reverse()
.to(stdOut()); // prints "b", "a"
// Or
UnixStream.from(stream)
.pipe(reverse())
.to(stdOut()); // prints "b", "a"
UnixStream is created with passion by Mahmoud Ben Hassine