Operator

!=(_:_:)

Returns a Boolean value indicating whether two values are not equal.

Declaration

static func != (lhs: IndexPath, rhs: IndexPath) -> Bool

Parameters

lhs

A value to compare.

rhs

Another value to compare.

Discussion

Inequality is the inverse of equality. For any values a and b, a != b implies that a == b is false.

This is the default implementation of the not-equal-to operator (!=) for any type that conforms to Equatable.

See Also

Adding Nodes

static func + (IndexPath, IndexPath) -> IndexPath

Combines the elements of two index paths into a single index path.

static func += (inout IndexPath, IndexPath)

Appends the elements of another index path to this index path.

static func < (IndexPath, IndexPath) -> Bool

Returns a Boolean that is true if the first index path is less than the second when comparing elements in depth-first traversal order.

static func == (IndexPath, IndexPath) -> Bool

Returns a Boolean that is true if all nodes of the first index path are equal to those of the second in order.