Is there a platform feature that will do the following?
convertBase :: (Num a, Num b) => Int -> Int -> [a] -> [b]
Convert a number from base 'a' to base 'b', where each list item is a number in a number. eg:
convertBase 2 10 [1,1,0,1] = [1, 3]
I hope this makes sense let me know if I can clean something
user181351
source share