Tag Archives: radix conversion

(Haskell) Radix Conversion

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.

Posted in Haskell | Also tagged , , , , | Leave a comment

(Haskell) Radix Conversion using ByteStrings

Another radix conversion, when you need to zippy greatness of Haskell’s ByteString.(Haskell strings are slooooow!)

Posted in Haskell | Also tagged , , , , | Leave a comment