[{"name":"RadixInt","comment":" This library allows you to convert between Int (base 10) and a List Int (base n). It purposely does not tie you to any specific notation to represent the digits.\n\n    base6 = 6\n    RadixInt.fromInt 34 base6\n        |> RadixInt.toList -- [4,5]  (54 in base6 == 34 in base10)\n        |> List.indexedMap Tuple.pair -- [(0,4),(1,5)]\n\nThe List lines up its index with the position of each digit. Using Base12 as an example, lets represent 10 as A and 11 as B. Thus, these are all equivalent:\n\n    142     -- base10\n    BA      -- base12\n    [10 11] -- RadixInt.toList\n            -- Note: index 0 == position 0 (2 in 142; A in BA)\n            --       index 1 == position 1 (4 in 142; B in BA)\n            --       index 2 == position 2 (1 in 142)\n            -- 142 = 10^2 * 1 + 10^1 *  4 + 10^0 *  2\n            -- BA  =            12^1 * 11 + 12^0 * 10\n\n\n# Definition\n\n@docs RadixInt\n\n\n# Methods\n\n@docs fromInt, toInt, toList\n\n","unions":[{"name":"RadixInt","comment":" Represents a number with any Int RadixInt\n","args":[],"cases":[]}],"aliases":[],"values":[{"name":"fromInt","comment":" Convert an Int with a custom base into a RadixInt\n\n    base6 = 6\n    fromInt 36 base6 == RadixInt\n\n","type":"Basics.Int -> Basics.Int -> RadixInt.RadixInt"},{"name":"toInt","comment":" Convert a RadixInt back into the Elm's base10 Int\n\n    base16 = 16\n    toInt (RadixInt.fromInt 24 base16) == 24\n\n","type":"RadixInt.RadixInt -> Basics.Int"},{"name":"toList","comment":" Convert a RadixInt into a List of Ints, where the index in the List corresponds to the position of the numbers.\n\n    base10 = 10\n    toList (RadixInt.fromInt 123 base10) == [3, 2, 1]\n\n    --   1     2     3\n    --   |     |     |\n    -- 10^2  10^1  10^0\n\n","type":"RadixInt.RadixInt -> List.List Basics.Int"}],"binops":[]}]