Created
August 21, 2021 12:48
-
-
Save magdamiu/a0b5097e9480df00a21c3ca13de0a2f5 to your computer and use it in GitHub Desktop.
Clean Code with Kotlin by Magda Miu - Functions 2 - Clean Code
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
var countUsersYoungerThan30WithSubscriptions = 0 | |
for (user in users) { | |
if (user.isYoungerThan30WithSubscriptions) { | |
countUsersYoungerThan30WithSubscriptions++; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment