Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created July 2, 2019 22:51
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/349a51ca87046c8a4234148d6030a4ed to your computer and use it in GitHub Desktop.
Save parzibyte/349a51ca87046c8a4234148d6030a4ed to your computer and use it in GitHub Desktop.
// Definir un arreglo con arrayOf
val nombres = arrayOf("Luis", "María José", "Fernando")
for (indice in nombres.indices){
println("En el índice ${indice} tenemos a ${nombres[indice]}")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment