Jim Blandy wrote:
> What's frustrating here is that, for bignums, the system has an
> approximation to the log base 2--- the length of the number in memory
> --- right there, but it won't give it to you. So you should be able
> to get it in constant time.
Yes - adding integer-length as a primitive would make a lot of sense.
--
Jens Axel Søgaard