On Thu, 2015-01-22 at 10:21 -0800, H. S. Teoh via Digitalmars-d-learn
wrote:
[…]
>
> https://github.com/D-Programming-Language/phobos/pull/2895
>
> This is just the tip of the iceberg. The full enhancement is described
> in:
>
> https://issues.dlang.org/show_bug.cgi?id=10762
>
Sadly, I s
On Thu, Jan 22, 2015 at 05:12:17PM +, Russel Winder via Digitalmars-d-learn
wrote:
> Using reduce for factorial, seems to require iota, not a bad things
> per se, with ulongs:
>
> reduce!"a*b"(1, iota(1, n + 1))
>
> works fine. Now switch to BigInt:
>
> reduce!"a*b"(one, iota(on
Using reduce for factorial, seems to require iota, not a bad things per
se, with ulongs:
reduce!"a*b"(1, iota(1, n + 1))
works fine. Now switch to BigInt:
reduce!"a*b"(one, iota(one, n + one))
fails to compile, one and n + one are of different types. Problem is
that one is immut