Collection
protocol Collection : Sequence where Self.SubSequence : Collection
-
Returns the element at the specified index iff it is within bounds, otherwise nil.
Declaration
Swift
subscript(safe index: Index) -> Iterator.Element? { get }