Skip to content

Instantly share code, notes, and snippets.

@CDRussell
Last active August 8, 2017 06:29
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 CDRussell/44d458b67aa15298f653034bd3503a51 to your computer and use it in GitHub Desktop.
Save CDRussell/44d458b67aa15298f653034bd3503a51 to your computer and use it in GitHub Desktop.
Kotlin Simple rangeTo Example
if (i in 1..10) {
println("$i is within the range of 1-10")
} else {
println("$i is not in range of 1-10")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment