回答編集履歴
4
カンニングして修正
test
CHANGED
@@ -22,7 +22,7 @@
|
|
22
22
|
|
23
23
|
// 複数存在するかもしれないから配列に保存
|
24
24
|
|
25
|
-
var index = [IndexPath]()
|
25
|
+
var indexes = [IndexPath]()
|
26
26
|
|
27
27
|
|
28
28
|
|
@@ -34,7 +34,7 @@
|
|
34
34
|
|
35
35
|
let indexpath: IndexPath = [count,existNum]
|
36
36
|
|
37
|
-
index.append(indexpath)
|
37
|
+
indexes.append(indexpath)
|
38
38
|
|
39
39
|
}
|
40
40
|
|
@@ -44,7 +44,7 @@
|
|
44
44
|
|
45
45
|
|
46
46
|
|
47
|
-
print(index) // => [[0, 3], [2, 3]]
|
47
|
+
print(indexes) // => [[0, 3], [2, 3]]
|
48
48
|
|
49
49
|
```
|
50
50
|
|
3
誤字訂正
test
CHANGED
@@ -30,9 +30,9 @@
|
|
30
30
|
|
31
31
|
for array in arrayOfArray {
|
32
32
|
|
33
|
-
if let exs
|
33
|
+
if let existNum = array.index(of: "え"){
|
34
34
|
|
35
|
-
let indexpath: IndexPath = [count,exs
|
35
|
+
let indexpath: IndexPath = [count,existNum]
|
36
36
|
|
37
37
|
index.append(indexpath)
|
38
38
|
|
2
コード不要部分削除
test
CHANGED
@@ -36,8 +36,6 @@
|
|
36
36
|
|
37
37
|
index.append(indexpath)
|
38
38
|
|
39
|
-
} else {
|
40
|
-
|
41
39
|
}
|
42
40
|
|
43
41
|
count += 1
|
1
誤字訂正
test
CHANGED
@@ -52,4 +52,4 @@
|
|
52
52
|
|
53
53
|
|
54
54
|
|
55
|
-
もっとスマートな方法を
|
55
|
+
もっとスマートな方法を知りたいです。
|