Skip to content

Instantly share code, notes, and snippets.

@Kpeved
Created February 22, 2023 21:09
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 Kpeved/4538249b44a89521120282b4b5b08b58 to your computer and use it in GitHub Desktop.
Save Kpeved/4538249b44a89521120282b4b5b08b58 to your computer and use it in GitHub Desktop.
val dotsVisibility = remember(currentHour) {
hours.map { index ->
when {
index > currentHour -> false
index > currentHour - 12 -> true
else -> false
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment