Sort an integer array: Difference between revisions
Content added Content deleted
(added c#) |
|||
Line 222: | Line 222: | ||
! b = array of indices of a. b(1) 'points' to the minimum value etc. |
! b = array of indices of a. b(1) 'points' to the minimum value etc. |
||
=={{header|Groovy}}== |
|||
<lang groovy>println ([2,4,0,3,1,2,-12].sort())</lang> |
|||
Output: |
|||
<pre>[-12, 0, 1, 2, 2, 3, 4]</pre> |
|||
=={{header|Haskell}}== |
=={{header|Haskell}}== |