mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[stdlib] Regenerate Slice_Of_*_* validation-tests
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user