On Sun, Dec 9, 2012 at 11:37 AM, Artella Coding
<
artella...@googlemail.com> wrote:
> Yes, thanks for this. Just tried it out on the tail recursive code in
>
https://groups.google.com/d/msg/qilang/d6FUR_RDJI8/u8M88zJq8O8J and it gives
> same number. It is also faster :
How are you timing this? Are you using the time function?
(time (totalPrimes 20000))
On Sun, Dec 9, 2012 at 3:43 PM, Artella Coding
<
artella...@googlemail.com> wrote:
> should be approaching this speed, though I am not sure since I dont know how
> differently numbers in Shen are represented as compared to Java (see
Based on Willi's enlightening email, it appears I perhaps
misunderstood the spec regarding numbers so I think I'll go change it
to strictly use Double's and see what happens.
I had thought that the spec required differentiating between integers
and floats, but apparently that is not the case. Rather, it appears
that when the spec says:
"Numbers are either integers or floats;"
all it means is that for some numbers, integer? will return true and
it is not a requirement about the implementation.