回答編集履歴
1
修正
test
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
extension Array {
|
8
8
|
|
9
|
-
mutating func
|
9
|
+
mutating func arraySwapIndex(index1 index1: Int, index2: Int) {
|
10
10
|
|
11
11
|
swap(&self[index1], &self[index2])
|
12
12
|
|