Array
struct Array<Element> : RandomAccessCollection, MutableCollection
-
Find the last element in the
Array
that matches the given criterion.Declaration
Swift
public func lastIndex(where evaluate: (Element) throws -> Bool) rethrows -> Index?
Parameters
evaluate
The 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