Sort an integer array: Difference between revisions
Content added Content deleted
m (→sort a list: added/changed some comments and whitespace.) |
Drkameleon (talk | contribs) No edit summary |
||
Line 211: | Line 211: | ||
{"alpha", "beta", "delta", "epsilon", "eta", "gamma", |
{"alpha", "beta", "delta", "epsilon", "eta", "gamma", |
||
"iota", "kappa", "lambda", "mu", "theta", "zeta"}}</pre> |
"iota", "kappa", "lambda", "mu", "theta", "zeta"}}</pre> |
||
=={{header|Arturo}}== |
|||
<lang arturo>arr: #(2 3 5 8 4 1 6 9 7) |
|||
sort! arr // in-place |
|||
loop arr => print</lang> |
|||
{{out}} |
|||
<pre>1 |
|||
2 |
|||
3 |
|||
4 |
|||
5 |
|||
6 |
|||
7 |
|||
8 |
|||
9</pre> |
|||
=={{header|AutoHotkey}}== |
=={{header|AutoHotkey}}== |