
6 Apr
2015
6 Apr
'15
6:35 a.m.
On Sun, 5 Apr 2015, Vikas Menon wrote:
Example: λ> showIntAtBaseGeneric 26 id (:) 500 [] -- convert 500 to base26 and provide output as a list. [19,6]
Please let me know thoughts/concerns if any to this proposal.
That is, you want to decompose a number into digits of an arbitrary base? I would not associate that with "show". I have implemented this in some flavors: https://hackage.haskell.org/package/numeric-prelude-0.4.2/docs/Algebra-Integ... decomposePositional in http://code.haskell.org/~thielema/htam/src/NumberTheory.hs