File tree Expand file tree Collapse file tree 4 files changed +24
-0
lines changed Expand file tree Collapse file tree 4 files changed +24
-0
lines changed Original file line number Diff line number Diff line change 13321332 "RightComment" : " firstIndex" ,
13331333 "ModuleName" : " Swift"
13341334 },
1335+ {
1336+ "DiffItemKind" : " CommonDiffItem" ,
1337+ "NodeKind" : " Function" ,
1338+ "NodeAnnotation" : " Rename" ,
1339+ "ChildIndex" : " 0" ,
1340+ "LeftUsr" : " s:SlsE5index5where5IndexQzSgSb7ElementQzKXE_tKF" ,
1341+ "LeftComment" : " index" ,
1342+ "RightUsr" : " " ,
1343+ "RightComment" : " firstIndex" ,
1344+ "ModuleName" : " Swift"
1345+ },
13351346]
Original file line number Diff line number Diff line change 1010 "RightComment" : " firstIndex" ,
1111 "ModuleName" : " Swift"
1212 },
13+ {
14+ "DiffItemKind" : " CommonDiffItem" ,
15+ "NodeKind" : " Function" ,
16+ "NodeAnnotation" : " Rename" ,
17+ "ChildIndex" : " 0" ,
18+ "LeftUsr" : " s:SlsE5index5where5IndexQzSgSb7ElementQzKXE_tKF" ,
19+ "LeftComment" : " index" ,
20+ "RightUsr" : " " ,
21+ "RightComment" : " firstIndex" ,
22+ "ModuleName" : " Swift"
23+ },
1324]
Original file line number Diff line number Diff line change 66
77func test1( _ a: [ String ] , s: String ) {
88 _ = a. index ( of: s)
9+ _ = a. index ( where: { _ in true } )
910}
1011func test2( _ s: String , c: Character ) {
1112 _ = s. index ( of: c)
Original file line number Diff line number Diff line change 66
77func test1(_ a: [String], s: String) {
88 _ = a.firstIndex(of: s)
9+ _ = a.firstIndex(where: { _ in true })
910}
1011func test2(_ s: String, c: Character) {
1112 _ = s.firstIndex(of: c)
You can’t perform that action at this time.
0 commit comments