Skip to content

Instantly share code, notes, and snippets.

@magdamiu
Created August 21, 2021 12:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save magdamiu/a0b5097e9480df00a21c3ca13de0a2f5 to your computer and use it in GitHub Desktop.
Save magdamiu/a0b5097e9480df00a21c3ca13de0a2f5 to your computer and use it in GitHub Desktop.
Clean Code with Kotlin by Magda Miu - Functions 2 - Clean Code
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