[swift-evolution] [Proposal] Safer half-open range operator

Maximilian H├╝nenberger m.huenenberger at me.com
Wed Apr 27 06:17:42 CDT 2016


Do you change the proposal to introduce new (default) subscripts to CollectionType/ RangeReplacableCollectionType?

subscript(safe index: Index) -> Element?
subscript(truncate range: Range<Index>) -> SubSequence

Maybe a new proposal would be appropriate (and a new thread).

Best regards
- Maximilian


More information about the swift-evolution mailing list