Sort an integer array: Difference between revisions
Content added Content deleted
m (placed the categories in the right order for the task.) |
(Added Quackery.) |
||
Line 2,020: | Line 2,020: | ||
<lang python>nums = sorted([2,4,3,1,2])</lang> |
<lang python>nums = sorted([2,4,3,1,2])</lang> |
||
=={{header|Quackery}}== |
|||
As a dialogue in the Quackery shell. |
|||
<pre>/O> [] 20 times [ 10 random join ] |
|||
... dup echo cr |
|||
... sort |
|||
... echo cr |
|||
... |
|||
[ 5 2 5 0 4 5 1 5 1 1 0 3 7 2 0 9 6 1 8 7 ] |
|||
[ 0 0 0 1 1 1 1 2 2 3 4 5 5 5 5 6 7 7 8 9 ] |
|||
</pre> |
|||
=={{header|R}}== |
=={{header|R}}== |