Number reversal game: Difference between revisions

Line 566:
 
=={{header|Groovy}}==
{{incorrect|Groovy|Example is likely to fail if numbers are initially randomly shuffled to the ordered state. (See talk).}}
<lang groovy>sorted = [*(1..9)]
arr = sorted.clone()
Anonymous user