Guest User

Untitled

a guest
May 20th, 2018
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. MutableList<Person> people = ...;
  2. MutableList<Person> res1 = people.distinct();
  3. MutableList<Person> res2 = people.distinct(HashingStrategies.fromFunction(Person::getSystemId));
  4. MutableList<Person> res3 = people.distinctBy(Person::getSystemId);
Add Comment
Please, Sign In to add comment