You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Returns an index that is the specified distance from the given index, unless that distance is beyond a given limiting index.
214
214
///
215
-
/// - Requires: `index` must be a valid index in this tree. The operation must not advance the index beyond `endIndex` or before `startIndex`.
215
+
/// - Requires: `index` and `limit` must be valid indices of this tree. The operation must not advance the index beyond `endIndex` or before `startIndex`.
216
216
/// - Complexity: O(log(*count*)) where *count* is the number of elements in the tree.
/// Offsets the given index by the specified distance, or so that it equals the given limiting index.
230
230
///
231
-
/// - Requires: `index` must be a valid index in this tree. The operation must not advance the index beyond `endIndex` or before `startIndex`.
231
+
/// - Requires: `index` and `limit` must be valid indices of this tree. The operation must not advance the index beyond `endIndex` or before `startIndex`.
232
232
/// - Complexity: O(log(*count*)) where *count* is the number of elements in the tree.
/// Returns an index that is the specified distance from the given index, unless that distance is beyond a given limiting index.
209
+
///
210
+
/// - Requires: `index` and `limit` must be valid indices in this map. The operation must not advance the index beyond `endIndex` or before `startIndex`.
211
+
/// - Complexity: O(log(*count*)) where *count* is the number of elements in the map.
return tree.index(i, offsetBy: n, limitedBy: limit)
182
214
}
183
215
216
+
/// Offsets the given index by the specified distance, or so that it equals the given limiting index.
217
+
///
218
+
/// - Requires: `index` and `limit` must be valid indices in this map. The operation must not advance the index beyond `endIndex` or before `startIndex`.
219
+
/// - Complexity: O(log(*count*)) where *count* is the number of elements in the map.
/// Returns an index that is the specified distance from the given index, unless that distance is beyond a given limiting index.
167
+
///
168
+
/// - Requires: `index` and `limit` must be valid indices in this set. The operation must not advance the index beyond `endIndex` or before `startIndex`.
169
+
/// - Complexity: O(log(*count*)) where *count* is the number of elements in the set.
return tree.index(i, offsetBy: n, limitedBy: limit)
140
172
}
141
173
174
+
/// Offsets the given index by the specified distance, or so that it equals the given limiting index.
175
+
///
176
+
/// - Requires: `index` and `limit` must be valid indices in this set. The operation must not advance the index beyond `endIndex` or before `startIndex`.
177
+
/// - Complexity: O(log(*count*)) where *count* is the number of elements in the set.
0 commit comments