回答編集履歴

1

変更

2020/05/07 03:05

投稿

MasakiHori
MasakiHori

スコア3391

test CHANGED
@@ -4,6 +4,18 @@
4
4
 
5
5
  ```swift
6
6
 
7
+ selectedRowsIndexPaths.contains(where: indexPaths.contains)
8
+
9
+ ```
10
+
11
+
12
+
13
+ ----
14
+
15
+ ↓こっちの方が遅い
16
+
17
+ ```swift
18
+
7
19
  let result = !selectedRowsIndexPaths.filter(indexPaths.contains).isEmpty
8
20
 
9
21
  ```