Created
September 23, 2021 14:05
-
-
Save aysesenses/94ba52194cb617bb625f02db6dc64ded 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
val decorations = listOf ("rock", "pagoda", "plastic plant", "alligator", "flowerpot") | |
println(decorations.filter {true}) | |
println(decorations.filter {it[0] == 'p'}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment