toDigits

fun Int.toDigits(): List<Int>

It returns the list of digits of the specified integer in the same order as their value place representation.

Return

the list of integer digits of the specified integer.

Sources

Link copied to clipboard