Binary digits: Difference between revisions
Content added Content deleted
(→ES6) |
m (→ES6) |
||
Line 1,498: | Line 1,498: | ||
9000 -> 10001100101000</pre> |
9000 -> 10001100101000</pre> |
||
Or, if we need more flexibility with the set of digits used, we can write a version of showIntAtBase which takes a more specific Int -> Char function as as an argument: |
Or, if we need more flexibility with the set of digits used, we can write a version of showIntAtBase which takes a more specific Int -> Char function as as an argument. This one is a rough translation of Haskell's Numeric.showIntAtBase: |
||
<lang JavaScript>(() => { |
<lang JavaScript>(() => { |