Array
public extension Array
The Array extension
-
A Boolean value indicating whether the collection is not empty.
Declaration
Swift
var isNotEmpty: Bool { get }
-
Check if the current index is the last element in this array
Declaration
Swift
func isLast(index: Int) -> Bool
-
A safe way to check if element exists in this array
Declaration
Swift
subscript(safe index: Index) -> Element? { get }
Parameters
index
the index of an element