Last active
May 15, 2018 21:59
-
-
Save motlin/a0fcb2ba58101b11c0ce6791cbd7e32e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MutableList<Person> people = ...; | |
MutableList<Person> res1 = people.distinct(); | |
MutableList<Person> res2 = people.distinct(HashingStrategies.fromFunction(Person::getSystemId)); | |
MutableList<Person> res3 = people.distinctBy(Person::getSystemId); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment