Sorting algorithms/Insertion sort: Difference between revisions
m
→{{header|Arturo}}
m (→{{header|Phix}}: added syntax colouring the hard way) |
Drkameleon (talk | contribs) |
||
Line 760:
arr: new items
loop 1..(size items)-1 'i [
value: arr
j: i - 1
while [and? -> j >= 0
-> value < arr
[
j: j - 1
]
]
return arr
|