Collection
public extension Collection
-
Returns an optional element. Returns nil if the
index
is out of bounds.Declaration
Swift
subscript(safe index: Index) -> Iterator.Element? { get }
-
Returns an optional element. Returns nil if the
index
is out of bounds.Declaration
Swift
func at(_ index: Index) -> Iterator.Element?