Array
struct Array<Element> : RandomAccessCollection, MutableCollection
-
Find the last element in the
Arraythat matches the given criterion.Declaration
Swift
public func lastIndex(where evaluate: (Element) throws -> Bool) rethrows -> Index?Parameters
evaluateThe function to use to evaluate the search pattern.
Return Value
The element that matches the pattern, searching in reverse.
-
Declaration
Swift
public func jsonObject() -> Any
View on GitHub
Array Extension Reference