On Tuesday, 22 July 2014 at 19:12:31 UTC, H. S. Teoh via Digitalmars-d wrote:
I'd rather write:int factorial(int n) pure { return reduce!((a,b) => a*b)(1, iota(2, n)); } ;-)
This is how we fucked UFCS.
On Tuesday, 22 July 2014 at 19:12:31 UTC, H. S. Teoh via Digitalmars-d wrote:
I'd rather write:int factorial(int n) pure { return reduce!((a,b) => a*b)(1, iota(2, n)); } ;-)
This is how we fucked UFCS.