Created
January 11, 2016 21:50
-
-
Save lnds/a001e68d186fb0082c2a to your computer and use it in GitHub Desktop.
Fors en kotlin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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