We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0c3bc2 commit 997b043Copy full SHA for 997b043
benchmark/single-source/StaticArray.swift
@@ -44,6 +44,8 @@ struct A2X<T : StaticArrayProtocol> : StaticArrayProtocol {
44
struct StaticArray<
45
T : StaticArrayProtocol
46
> : StaticArrayProtocol, RandomAccessCollection, MutableCollection {
47
+ typealias Indices = CountableRange<Int>
48
+
49
init(_ defaultValue : T.ElemTy) { values = T(defaultValue) }
50
var values : T
51
func get(_ idx: Int) -> T.ElemTy { return values.get(idx) }
0 commit comments