Simen kjaeraas: > auto sum( R )( R range ) { > return reduce!"a+b"( 0, range ); > } Summing an iterable is a really common operation, and using reduce is not an intuitive&easy thing. So I think a sum() needs to be added to std.algorithm, this was my enhancement request for it: http://d.puremagic.com/issues/show_bug.cgi?id=4725 Bye, bearophile