Last active
September 8, 2016 20:21
-
-
Save Bonifacio2/55d9e786cfe3c4f3e8a1f3852f5f6f4a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cutn :: Int -> [Int] | |
cutn n | |
| (n `div` 10) == 0 = [n] | |
| otherwise = (cutn (n `div` 10)) ++ [n `mod` 10] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment