[stdlib] Regenerate Slice_Of_*_* validation-tests

This commit is contained in:
Ben Rimmington
2020-05-10 12:44:34 +01:00
parent f2c952cb69
commit 0061d89efa
96 changed files with 576 additions and 576 deletions

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = DefaultedBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = DefaultedBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = DefaultedBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = DefaultedBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = DefaultedBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = DefaultedBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = DefaultedBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = DefaultedBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = DefaultedBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = DefaultedBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = DefaultedBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = DefaultedBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = DefaultedCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = DefaultedCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = DefaultedCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = DefaultedCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = DefaultedCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = DefaultedCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = DefaultedCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = DefaultedCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = DefaultedCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = DefaultedCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = DefaultedCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = DefaultedCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = DefaultedMutableBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = DefaultedMutableBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = DefaultedMutableBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = DefaultedMutableBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = DefaultedMutableBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = DefaultedMutableBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = DefaultedMutableBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = DefaultedMutableBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = DefaultedMutableBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = DefaultedMutableBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = DefaultedMutableBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = DefaultedMutableBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = DefaultedMutableCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = DefaultedMutableCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = DefaultedMutableCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = DefaultedMutableCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = DefaultedMutableCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = DefaultedMutableCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = DefaultedMutableCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = DefaultedMutableCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = DefaultedMutableCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = DefaultedMutableCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = DefaultedMutableCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = DefaultedMutableCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = DefaultedMutableRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = DefaultedMutableRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = DefaultedMutableRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = DefaultedMutableRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = DefaultedMutableRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = DefaultedMutableRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = DefaultedMutableRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = DefaultedMutableRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = DefaultedMutableRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = DefaultedMutableRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = DefaultedMutableRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = DefaultedMutableRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = DefaultedMutableRangeReplaceableBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = DefaultedMutableRangeReplaceableBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = DefaultedMutableRangeReplaceableBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = DefaultedMutableRangeReplaceableBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = DefaultedMutableRangeReplaceableBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = DefaultedMutableRangeReplaceableBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = DefaultedMutableRangeReplaceableBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = DefaultedMutableRangeReplaceableBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = DefaultedMutableRangeReplaceableBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = DefaultedMutableRangeReplaceableBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = DefaultedMutableRangeReplaceableBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = DefaultedMutableRangeReplaceableBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = DefaultedMutableRangeReplaceableCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = DefaultedMutableRangeReplaceableCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = DefaultedMutableRangeReplaceableCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = DefaultedMutableRangeReplaceableCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = DefaultedMutableRangeReplaceableCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = DefaultedMutableRangeReplaceableCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = DefaultedMutableRangeReplaceableCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = DefaultedMutableRangeReplaceableCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = DefaultedMutableRangeReplaceableCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = DefaultedMutableRangeReplaceableCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = DefaultedMutableRangeReplaceableCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = DefaultedMutableRangeReplaceableCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = DefaultedMutableRangeReplaceableRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = DefaultedMutableRangeReplaceableRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = DefaultedMutableRangeReplaceableRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = DefaultedMutableRangeReplaceableRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = DefaultedMutableRangeReplaceableRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = DefaultedMutableRangeReplaceableRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = DefaultedMutableRangeReplaceableRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = DefaultedMutableRangeReplaceableRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = DefaultedMutableRangeReplaceableRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = DefaultedMutableRangeReplaceableRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = DefaultedMutableRangeReplaceableRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = DefaultedMutableRangeReplaceableRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = DefaultedRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = DefaultedRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = DefaultedRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = DefaultedRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = DefaultedRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = DefaultedRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = DefaultedRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = DefaultedRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = DefaultedRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = DefaultedRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = DefaultedRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = DefaultedRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = DefaultedRangeReplaceableBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = DefaultedRangeReplaceableBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = DefaultedRangeReplaceableBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = DefaultedRangeReplaceableBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = DefaultedRangeReplaceableBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = DefaultedRangeReplaceableBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = DefaultedRangeReplaceableBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = DefaultedRangeReplaceableBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = DefaultedRangeReplaceableBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = DefaultedRangeReplaceableBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = DefaultedRangeReplaceableBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = DefaultedRangeReplaceableBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = DefaultedRangeReplaceableCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = DefaultedRangeReplaceableCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = DefaultedRangeReplaceableCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = DefaultedRangeReplaceableCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = DefaultedRangeReplaceableCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = DefaultedRangeReplaceableCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = DefaultedRangeReplaceableCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = DefaultedRangeReplaceableCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = DefaultedRangeReplaceableCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = DefaultedRangeReplaceableCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = DefaultedRangeReplaceableCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = DefaultedRangeReplaceableCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = DefaultedRangeReplaceableRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = DefaultedRangeReplaceableRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = DefaultedRangeReplaceableRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = DefaultedRangeReplaceableRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = DefaultedRangeReplaceableRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = DefaultedRangeReplaceableRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = DefaultedRangeReplaceableRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = DefaultedRangeReplaceableRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = DefaultedRangeReplaceableRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = DefaultedRangeReplaceableRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = DefaultedRangeReplaceableRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = DefaultedRangeReplaceableRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = MinimalBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = MinimalBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = MinimalBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = MinimalBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = MinimalBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = MinimalBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = MinimalBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = MinimalBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = MinimalBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = MinimalBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = MinimalBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = MinimalBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = MinimalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = MinimalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = MinimalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = MinimalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = MinimalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = MinimalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = MinimalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = MinimalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = MinimalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = MinimalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = MinimalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = MinimalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = MinimalMutableBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = MinimalMutableBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = MinimalMutableBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = MinimalMutableBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = MinimalMutableBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = MinimalMutableBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = MinimalMutableBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = MinimalMutableBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = MinimalMutableBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = MinimalMutableBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = MinimalMutableBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = MinimalMutableBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = MinimalMutableCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = MinimalMutableCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = MinimalMutableCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = MinimalMutableCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = MinimalMutableCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = MinimalMutableCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = MinimalMutableCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = MinimalMutableCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = MinimalMutableCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = MinimalMutableCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = MinimalMutableCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = MinimalMutableCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = MinimalMutableRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = MinimalMutableRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = MinimalMutableRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = MinimalMutableRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = MinimalMutableRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = MinimalMutableRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = MinimalMutableRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = MinimalMutableRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = MinimalMutableRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = MinimalMutableRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = MinimalMutableRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = MinimalMutableRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = MinimalMutableRangeReplaceableBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = MinimalMutableRangeReplaceableBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = MinimalMutableRangeReplaceableBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = MinimalMutableRangeReplaceableBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = MinimalMutableRangeReplaceableBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = MinimalMutableRangeReplaceableBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = MinimalMutableRangeReplaceableBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = MinimalMutableRangeReplaceableBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = MinimalMutableRangeReplaceableBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = MinimalMutableRangeReplaceableBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = MinimalMutableRangeReplaceableBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = MinimalMutableRangeReplaceableBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = MinimalMutableRangeReplaceableCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = MinimalMutableRangeReplaceableCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = MinimalMutableRangeReplaceableCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = MinimalMutableRangeReplaceableCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = MinimalMutableRangeReplaceableCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = MinimalMutableRangeReplaceableCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = MinimalMutableRangeReplaceableCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = MinimalMutableRangeReplaceableCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = MinimalMutableRangeReplaceableCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = MinimalMutableRangeReplaceableCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = MinimalMutableRangeReplaceableCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = MinimalMutableRangeReplaceableCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = MinimalMutableRangeReplaceableRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = MinimalMutableRangeReplaceableRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = MinimalMutableRangeReplaceableRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = MinimalMutableRangeReplaceableRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = MinimalMutableRangeReplaceableRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = MinimalMutableRangeReplaceableRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = MinimalMutableRangeReplaceableRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = MinimalMutableRangeReplaceableRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = MinimalMutableRangeReplaceableRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = MinimalMutableRangeReplaceableRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = MinimalMutableRangeReplaceableRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = MinimalMutableRangeReplaceableRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = MinimalRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = MinimalRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = MinimalRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = MinimalRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = MinimalRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = MinimalRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = MinimalRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = MinimalRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = MinimalRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = MinimalRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = MinimalRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = MinimalRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = MinimalRangeReplaceableBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = MinimalRangeReplaceableBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = MinimalRangeReplaceableBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = MinimalRangeReplaceableBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = MinimalRangeReplaceableBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = MinimalRangeReplaceableBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = MinimalRangeReplaceableBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = MinimalRangeReplaceableBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = MinimalRangeReplaceableBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = MinimalRangeReplaceableBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = MinimalRangeReplaceableBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = MinimalRangeReplaceableBidirectionalCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = MinimalRangeReplaceableCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = MinimalRangeReplaceableCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = MinimalRangeReplaceableCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = MinimalRangeReplaceableCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = MinimalRangeReplaceableCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = MinimalRangeReplaceableCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = MinimalRangeReplaceableCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = MinimalRangeReplaceableCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = MinimalRangeReplaceableCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = MinimalRangeReplaceableCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = MinimalRangeReplaceableCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = MinimalRangeReplaceableCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = MinimalRangeReplaceableRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = MinimalRangeReplaceableRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = MinimalRangeReplaceableRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = MinimalRangeReplaceableRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = MinimalRangeReplaceableRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = MinimalRangeReplaceableRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = MinimalRangeReplaceableRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = MinimalRangeReplaceableRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = MinimalRangeReplaceableRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}

View File

@@ -27,10 +27,10 @@ func makeCollection(elements: [OpaqueValue<Int>])
let base = MinimalRangeReplaceableRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -42,10 +42,10 @@ func makeCollectionOfEquatable(elements: [MinimalEquatableValue])
let base = MinimalRangeReplaceableRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}
@@ -57,10 +57,10 @@ func makeCollectionOfComparable(elements: [MinimalComparableValue])
let base = MinimalRangeReplaceableRandomAccessCollection(elements: baseElements)
let startIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count))
offsetBy: prefix.count)
let endIndex = base.index(
base.startIndex,
offsetBy: numericCast(prefix.count + elements.count))
offsetBy: prefix.count + elements.count)
return Slice(base: base, bounds: startIndex..<endIndex)
}