Filtering even numbers in various languages
Christopher Nicholson-Sauls
ibisbasenji at gmail.com
Tue Feb 8 22:02:19 PST 2011
On 02/08/11 19:02, Andrei Alexandrescu wrote:
> https://gist.github.com/817504
>
> I added a D version.
>
> Andrei
I would argue that (a & 1 == 0) is a cheaper simple test for evenness...
</gratuitous-nitpick>
Good show. Not really sure what the point of the list was... but
sometimes these things are just (for) fun.
-- Chris N-S
More information about the Digitalmars-d
mailing list