A little of coordination for Rosettacode

bearophile bearophileHUGS at lycos.com
Wed Feb 27 04:45:31 PST 2013


FG:

> or, without reverse, but perhaps not very clear:
> N.iota.map!(j => !!(i & (1 << (N - j - 1)))).copy(bits[]);

OK, improved in Rosettacode.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list