mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[stdlib] indexing model: Interval/Range merge
This is step 1; we still need to introduce ClosedRange.
This commit is contained in:
@@ -88,10 +88,10 @@ partitionDocComment = """\
|
||||
/// Re-order the given `range` of elements in `self` and return
|
||||
/// a pivot index *p*.
|
||||
///
|
||||
/// - Postcondition: For all *i* in `range.startIndex..<`\ *p*, and *j*
|
||||
/// in *p*\ `..<range.endIndex`, `less(self[`\ *i*\ `],
|
||||
/// - Postcondition: For all *i* in `range.lowerBound..<`\ *p*, and *j*
|
||||
/// in *p*\ `..<range.upperBound`, `less(self[`\ *i*\ `],
|
||||
/// self[`\ *j*\ `]) && !less(self[`\ *j*\ `], self[`\ *p*\ `])`.
|
||||
/// Only returns `range.endIndex` when `self` is empty."""
|
||||
/// Only returns `range.upperBound` when `self` is empty."""
|
||||
|
||||
orderingRequirementForPredicate = """\
|
||||
/// - Precondition: `isOrderedBefore` is a
|
||||
|
||||
Reference in New Issue
Block a user