Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
Return digits of a non-negative number in reverse order. Throw an error if number is negative or base is below 2.
digits 10 123 = [3, 2, 1] digits 10 0 = []
Safe Haskell | None |
---|---|
Language | Haskell2010 |
Return digits of a non-negative number in reverse order. Throw an error if number is negative or base is below 2.
digits 10 123 = [3, 2, 1] digits 10 0 = []