Created
May 15, 2018 21:51
-
-
Save motlin/b415013b5e3f6889da5b36bd9c4cf76c 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
MutableSet<Person> people = ...; | |
MutableSet<Address> addresses = people | |
.asLazy() | |
.collect(Person::getAddress) | |
.toSet(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment