File tree Expand file tree Collapse file tree 3 files changed +24
-24
lines changed
SwiftStructures.xcodeproj
project.xcworkspace/xcuserdata/waynebishop.xcuserdatad
xcuserdata/waynebishop.xcuserdatad/xcdebugger Expand file tree Collapse file tree 3 files changed +24
-24
lines changed Original file line number Diff line number Diff line change @@ -110,23 +110,23 @@ extension Int {
110
110
111
111
112
112
extension Array {
113
-
114
113
115
114
//returns the middle index
116
- func midIndex( ) -> Int {
117
- return Int ( floor ( Double ( self . count / 2 ) ) )
115
+ func midIndex( ) -> Index {
116
+ return startIndex + ( count / 2 )
118
117
}
119
118
120
119
121
120
//returns the first index
122
- func minIndex( ) -> Int {
123
- return 0
121
+ func minIndex( ) -> Index {
122
+ return startIndex
124
123
}
125
124
126
-
125
+
127
126
//returns the max index
128
- func maxIndex( ) -> Int {
129
- return self . count - 1
127
+ func maxIndex( ) -> Index {
128
+ return endIndex - 1
130
129
}
131
130
132
131
}
132
+
Original file line number Diff line number Diff line change 67
67
</Locations >
68
68
</BreakpointContent >
69
69
</BreakpointProxy >
70
- <BreakpointProxy
71
- BreakpointExtensionID = " Xcode.Breakpoint.FileBreakpoint" >
72
- <BreakpointContent
73
- shouldBeEnabled = " No"
74
- ignoreCount = " 0"
75
- continueAfterRunningActions = " No"
76
- filePath = " Source/Factories/Sorting.swift"
77
- timestampString = " 479340936.614523"
78
- startingColumnNumber = " 9223372036854775807"
79
- endingColumnNumber = " 9223372036854775807"
80
- startingLineNumber = " 36"
81
- endingLineNumber = " 36"
82
- landmarkName = " binarySearch(_:key:)"
83
- landmarkType = " 5" >
84
- </BreakpointContent >
85
- </BreakpointProxy >
86
70
<BreakpointProxy
87
71
BreakpointExtensionID = " Xcode.Breakpoint.FileBreakpoint" >
88
72
<BreakpointContent
163
147
landmarkType = " 5" >
164
148
</BreakpointContent >
165
149
</BreakpointProxy >
150
+ <BreakpointProxy
151
+ BreakpointExtensionID = " Xcode.Breakpoint.FileBreakpoint" >
152
+ <BreakpointContent
153
+ shouldBeEnabled = " No"
154
+ ignoreCount = " 0"
155
+ continueAfterRunningActions = " No"
156
+ filePath = " Source/Factories/Sorting.swift"
157
+ timestampString = " 479344395.147185"
158
+ startingColumnNumber = " 9223372036854775807"
159
+ endingColumnNumber = " 9223372036854775807"
160
+ startingLineNumber = " 29"
161
+ endingLineNumber = " 29"
162
+ landmarkName = " binarySearch(_:key:)"
163
+ landmarkType = " 5" >
164
+ </BreakpointContent >
165
+ </BreakpointProxy >
166
166
</Breakpoints >
167
167
</Bucket >
You can’t perform that action at this time.
0 commit comments