Haskell Radix Conversion


/ Published in: Haskell
Save to your folder(s)

Converts an integer from base 10 to a string of base x (where 0 > x >= 20). The only thing I'd improve is getting rid of all the calls to error. Perhaps hand back a Maybe String that simply hands back Nothing if unable to convert the number.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.