Array
extension Array where Element: Equatable
extension Array where Element == IndexPath
-
Return array containing elements of self that are also in other, plus elements from other that are not in self
Declaration
Swift
func updatePreservingOrder(from other: Array) -> [Element]Parameters
otherthe array to update from
-
Return element from self that is closest (in .row value) to the elt
Declaration
Swift
func closest(to elt: Element) -> Element?Parameters
eltelement to compare to self elements
Array Extension Reference