Proposal for a generic showIntAtBase

Antonio Nikishaev me at lelf.lu
Tue Apr 7 12:00:42 UTC 2015


Vikas Menon <menonvikas at gmail.com> writes:

> The API and behavior of showIntAtBase remains unchanged while allowing
> for generic conversions not limited to Chars alone.
>
> Example: 
> λ> showIntAtBaseGeneric 26 id (:) 500 [] -- convert 500 to base26 and
> provide output as a list.
> [19,6]

This has nothing to do with show.

And it's already there

h> fst (floatToDigits 26 500)
[19,6]


-- 
lelf



More information about the Libraries mailing list