Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- MutableList<Person> people = ...;
- MutableList<Person> res1 = people.distinct();
- MutableList<Person> res2 = people.distinct(HashingStrategies.fromFunction(Person::getSystemId));
- MutableList<Person> res3 = people.distinctBy(Person::getSystemId);
Add Comment
Please, Sign In to add comment