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