Sorting algorithms/Shell sort: Difference between revisions

Updated to work with version 1.4 of Nim.
m (→‎{{header|AppleScript}}: Minor modification to take range parameters. Output shown in separate box.)
(Updated to work with version 1.4 of Nim.)
Line 2,227:
while h > 0:
h = h div 2
for i in h .. < a.len:
let k = a[i]
var j = i
Anonymous user