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