> On Dec 8, 2016, at 16:22, Andrew Trick via swift-evolution
> <swift-evolution@swift.org> wrote:
>
> In practice, it needs to be able to interoperate with [UInt8] and be
> interchangeable in the same generic context.
>
> e.g. `byteBuffer += rawBuffer[payloadIndex..<endIndex]` is typical.
>
> I think Sequence is sufficient for that purpose.
Um, Sequence doesn’t have a subscript (or indexes). Sequences are single-pass.
So if this is important, it needs to stay a Collection.
Jordan
_______________________________________________
swift-evolution mailing list
swift-evolution@swift.org
https://lists.swift.org/mailman/listinfo/swift-evolution