C++ Ranges proposal for the Standard Library

Paulo Pinto via Digitalmars-d digitalmars-d at puremagic.com
Fri Oct 17 10:14:27 PDT 2014


Am 17.10.2014 um 17:14 schrieb "Ola Fosheim =?UTF-8?B?R3LDuHN0YWQi?= 
<ola.fosheim.grostad+dlang at gmail.com>":
> On Friday, 17 October 2014 at 09:52:26 UTC, Marco Leise wrote:
>> True. Iterators are more foundational, ranges are more
>> neat-o. ;)
>
> Python is more accurate, succinct and generic :-)
>
> Fraction(Fraction(sum(a)),len(a))
>
> or
>
> Fraction(sum([Fraction(n) for n in a]),len(a))

And sloooowwwweeeerrr


More information about the Digitalmars-d mailing list