Structure

ReversedCollection.Index

An index that traverses the same positions as an underlying index, with inverted traversal direction.

Declaration

@frozen struct Index

Topics

Initializers

init(Base.Index)

Creates a new index into a reversed collection for the position before the specified index.

Instance Properties

let base: Base.Index

The position after this position in the underlying collection.

var hashValue: Int

The hash value.

Beta

Instance Methods

func hash(into: inout Hasher)

Hashes the essential components of this value by feeding them into the given hasher.

Operator Functions

static func != (ReversedCollection<Base>.Index, ReversedCollection<Base>.Index) -> Bool

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

static func < (ReversedCollection<Base>.Index, ReversedCollection<Base>.Index) -> Bool

Returns a Boolean value indicating whether the value of the first argument is less than that of the second argument.

static func <= (ReversedCollection<Base>.Index, ReversedCollection<Base>.Index) -> Bool

Returns a Boolean value indicating whether the value of the first argument is less than or equal to that of the second argument.

static func == (ReversedCollection<Base>.Index, ReversedCollection<Base>.Index) -> Bool

Returns a Boolean value indicating whether two values are equal.

static func > (ReversedCollection<Base>.Index, ReversedCollection<Base>.Index) -> Bool

Returns a Boolean value indicating whether the value of the first argument is greater than that of the second argument.

static func >= (ReversedCollection<Base>.Index, ReversedCollection<Base>.Index) -> Bool

Returns a Boolean value indicating whether the value of the first argument is greater than or equal to that of the second argument.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software