Create a gist now

Instantly share code, notes, and snippets.

@lnds /ifs.kt
Created Jan 10, 2016

What would you like to do?
Ifs en Kotlin
if (!it.value.isDigit())
return null
if (it.index >= tam)
return null
else {
val digit = it.value.toInt() - '0'.toInt()
if (digit in num) return null
num =
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment