Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created July 5, 2019 23:06
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 parzibyte/c913869369ef9c6feaf99d5e5eb2f816 to your computer and use it in GitHub Desktop.
Save parzibyte/c913869369ef9c6feaf99d5e5eb2f816 to your computer and use it in GitHub Desktop.
// Podemos avanzar por pasos, y sí, usar negativos
val otroRangoDeNumeros = (-10..100).step(2)
for (numero in otroRangoDeNumeros) {
println("Número en pasos de 2: $numero")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment