Created
October 16, 2018 12:09
-
-
Save EmmanuelGuther/5186ecd5a24d3b59b9912f6756ad792b to your computer and use it in GitHub Desktop.
Get first element in collection if the condition is true
This file contains hidden or 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
| listFoo?.singleOrNull { it.id == "oooo" }.let {it...} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment