RosettaCodeData/Task/Sort-an-integer-array/Elena/sort-an-integer-array.elena

10 lines
201 B
Text
Raw Permalink Normal View History

2019-09-12 10:33:56 -07:00
import system'routines;
import extensions;
2016-12-05 22:15:40 +01:00
2019-09-12 10:33:56 -07:00
public program()
{
2020-02-17 23:21:07 -08:00
var unsorted := new int[]::(6, 2, 7, 8, 3, 1, 10, 5, 4, 9);
2016-12-05 22:15:40 +01:00
2019-09-12 10:33:56 -07:00
console.printLine(unsorted.clone().sort(ifOrdered).asEnumerable())
}