Oops, left out that there's this horrifying way of writing it right now: extension Collection { func index(_ i: Index! = nil, offsetBy n: IndexDistance) -> Index { let i = i ?? startIndex // ... } }
Nobody wants that.
_______________________________________________ swift-evolution mailing list swift-evolution@swift.org https://lists.swift.org/mailman/listinfo/swift-evolution