Search

May 31, 2010
General »
...contain references or pointers, so you can swap items around efficiently using their index.
Modern...
May 29, 2010
General »
...Range)*)) {
        swap(r1.front, r2.front);
    } else {
        static assert(is(typeof(&(r1.swapFront)), "Cannot swap...
May 25, 2010
General »
...all of my 4GB RAM and 6GB swap. Of course, that was at least partially...
May 03, 2010
General »
...not as important, you may want to swap keycodes with the semicolon.

On my keyboard...
May 03, 2010
Issues »
...alternative, cast(char[])"abc");
}



But if I swap the line A and B:


int fun...
May 02, 2010
General »
...errors it's a good idea to swap the syntax: instead of adding an explicit...
May 01, 2010
Issues »
http://d.puremagic.com/issues/show_bug.cgi?id=2928


Kyle Foley <k-foley@onu...
April 26, 2010
Announce »
...Transpose: this should be an in place swap. Given the value-type semantics of small...
April 21, 2010
General »
...The type systems catches errors if I swap them by mistake.
- If I want to...
April 21, 2010
Learn »
...isSorted() below.

Bye,
bearophile



import std.algorithm: swap, binaryFun, sort;
import std.range: isForwardRange, walkLength...
120 121 122 123 124 125 126 127 128 129 130
Next ›   Last »