Jump to content

Sorting algorithms/Gnome sort: Difference between revisions

m
→‎version 1: changed to a smaller font size for the output.
m (→‎version 1: changed whitespace and indentations, aligned statements better.)
m (→‎version 1: changed to a smaller font size for the output.)
Line 2,495:
show: do j=1 for #; say ' element' right(j, w) arg(1)":" @.j; end; return</lang>
{{out|output|:}}
 
<pre>
(Shown at three-quarter size.)
<pre style="font-size:75%">
element 1 before sort: ---the seven virtues---
element 2 before sort: =======================
Cookies help us deliver our services. By using our services, you agree to our use of cookies.