Subscripts
The following subscripts are available globally.
-
Safely accesses a collection element by index. Credit: https://gist.github.com/brentdax/72f3fcc3274c0e5f12d7
Declaration
Swift
public subscript(safe index: Index) -> Generator.Element?
Parameters
safe
The index of the element to access.
Return Value
The indexed element or nil if the index is out of bounds.