You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As described in the summary, EnumeratedSequence should conform to Collection when its wrapped sequence does.
The implementation would probably need to cache the element's offset in the index. The problem is that endIndex would need to know the count of the wrapped collection. To make performance reasonable, the collection would need to be a RandomAccessCollection so we can generate count in constant time.
(So it's more "Make EnumeratedSequence conditionally conform to RandomAccessCollection.)
The text was updated successfully, but these errors were encountered:
Removing Starter Bug for now – we don't have an implementation of "conformances with availability" or "backwards-deployable conformances" yet, so we don't want someone picking it up just yet. cc @lorentey
Additional Detail from JIRA
md5: 76c1052c3df9639d9f32660521687241
Issue Description:
As described in the summary,
EnumeratedSequence
should conform toCollection
when its wrapped sequence does.The implementation would probably need to cache the element's offset in the index. The problem is that
endIndex
would need to know thecount
of the wrapped collection. To make performance reasonable, the collection would need to be aRandomAccessCollection
so we can generatecount
in constant time.(So it's more "Make
EnumeratedSequence
conditionally conform toRandomAccessCollection
.)The text was updated successfully, but these errors were encountered: