Link Search Menu Expand Document

Digits

Write recursive method which for a given integer n will return a list consisting of its digits.

For example, for n = 123 the result should be [1, 2, 3]