Sorting algorithms/Gnome sort: Difference between revisions

Updated D entry
(Updated D entry)
Line 328:
(t (incf position)))))</lang>
=={{header|D}}==
<lang d>import std.stdio:, writelnstd.algorithm;
import std.algorithm: swap;
 
void gnomeSort(T)(T arr) {
Line 347 ⟶ 346:
}
}
 
 
void main() {