Jump to content

Sorting algorithms/Gnome sort: Difference between revisions

m
→‎{{header|Raku}}: modify tag placement
m (syntax highlighting fixup automation)
m (→‎{{header|Raku}}: modify tag placement)
Line 3,064:
}
}
}
}</syntaxhighlight>
 
my @n = (1..10).roll(20);
say @n.&gnome_sort ~~ @n.sort ?? 'ok' !! 'not ok';</syntaxhighlight>
 
=={{header|Rascal}}==
10,333

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.