append(_:)
Append a single element to self
.
- iOS
- 8.0+
- macOS
- 10.10+
- tvOS
- 9.0+
- watchOS
- 2.0+
mutating func append(_ other: IndexPath.Element)
Append a single element to self
.
mutating func append(_ other: IndexPath.Element)
import FoundationEssentials
struct IndexPath
IndexPath
represents the path to a specific node in a tree of nested array collections.
typealias Element = Int
init()
Initialize an empty index path.
init(arrayLiteral indexes: IndexPath.Element...)
Initialize with an array literal.
init(from decoder: any Decoder) throws
init(index: IndexPath.Element)
Initialize with a single element.
init(indexes: Array<IndexPath.Element>)
Initialize with an array of elements.
init<ElementSequence>(indexes: ElementSequence) where ElementSequence : Sequence, ElementSequence.Element == Int
Initialize with a sequence of integers.
var count: Int { get }
var customMirror: Mirror { get }
var debugDescription: String { get }
var description: String { get }
var endIndex: IndexPath.Index { get }
var startIndex: IndexPath.Index { get }
subscript(range: Range<IndexPath.Index>) -> IndexPath { get set }
subscript(index: IndexPath.Index) -> IndexPath.Element { get set }
static func + (lhs: IndexPath, rhs: IndexPath) -> IndexPath
static func += (lhs: inout IndexPath, rhs: IndexPath)
static func < (lhs: IndexPath, rhs: IndexPath) -> Bool
static func <= (lhs: IndexPath, rhs: IndexPath) -> Bool
static func == (lhs: IndexPath, rhs: IndexPath) -> Bool
static func > (lhs: IndexPath, rhs: IndexPath) -> Bool
static func >= (lhs: IndexPath, rhs: IndexPath) -> Bool
mutating func append(_ other: IndexPath)
Append an IndexPath
to self
.
mutating func append(_ other: Array<IndexPath.Element>)
Append an array of elements to self
.
func appending(_ other: IndexPath) -> IndexPath
Return a new IndexPath
containing the elements in self and the elements in other
.
func appending(_ other: Array<IndexPath.Element>) -> IndexPath
Return a new IndexPath
containing the elements in self and the elements in other
.
func appending(_ other: IndexPath.Element) -> IndexPath
Return a new IndexPath
containing the elements in self and the elements in other
.
func compare(_ other: IndexPath) -> ComparisonResult
Sorting an array of IndexPath
using this comparison results in an array representing nodes in depth-first traversal order.
func dropLast() -> IndexPath
Return a new IndexPath
containing all but the last element.
func encode(to encoder: any Encoder) throws
func hash(into hasher: inout Hasher)
func index(after i: IndexPath.Index) -> IndexPath.Index
func index(before i: IndexPath.Index) -> IndexPath.Index
func makeIterator() -> IndexingIterator<IndexPath>
typealias Index = Array<Int>.Index
typealias Indices = DefaultIndices<IndexPath>