Skip to content

Instantly share code, notes, and snippets.

@lnds
Created January 11, 2016 21:50
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 lnds/a001e68d186fb0082c2a to your computer and use it in GitHub Desktop.
Save lnds/a001e68d186fb0082c2a to your computer and use it in GitHub Desktop.
Fors en kotlin
for (it in accion.withIndex()) {
if (!it.value.isDigit())
return null
if (it.index >= tam)
return null
}
for ((i,n) in num.withIndex())
for ((j,m) in sec.withIndex())
if (n == m) {
if (i == j) famas++
else toques++
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment