Klitos Kyriacou
fun Int.digits(base: Int = 10): List<Int> = if (this < base) listOf(this) else (this/base).digits() + this % base
this < base
Roman Golyshev
A modern programming language that makes developers happier.