Skip to content

distinct with key selector #16

@zhuker

Description

@zhuker

ala http://reactivex.io/RxJava/1.x/javadoc/rx/Observable.html#distinct-rx.functions.Func1-

stream = Stream.of("a1", "b1", "c2", "c3");
distinct = StreamUtils.distinct(stream, str -> str.charAt(1));
distinct.forEach(x -> System.out.println(x));

prints:

a1
c2
c3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions