与えられた関数 selection_sort を selection_sort(5, [3,5,2,1,4]) のように呼び出すと、結果は
selection_sort
selection_sort(5, [3,5,2,1,4])
3 5 2 1 4 1 5 2 3 4 1 2 5 3 4 1 2 3 5 4
となる。