Filtering even numbers in various languages

bearophile bearophileHUGS at lycos.com
Tue Feb 8 17:17:11 PST 2011


Andrei:

> https://gist.github.com/817504
> 
> I added a D version.

Good :-)

They have missed the lazy Python2.x version:
(x for x in xrange(1, 5) if not x % 2)

Bye,
bearophile


More information about the Digitalmars-d mailing list