Files
Karoy Lorentey ccb6059969 Update docs
Final documentation pass
2025-09-29 09:23:00 -07:00

99 lines
2.4 KiB
Markdown

# ``BasicContainers/UniqueArray``
## Topics
### Creating a Unique Array
- ``init()``
- ``init(capacity:)``
- ``init(capacity:initializingWith:)``
- ``init(repeating:count:)``
- ``init(consuming:)``
- ``init(capacity:copying:)-(_,Sequence<Element>)``
- ``init(capacity:copying:)-(_,Collection<Element>)``
### Inspecting a Unique Array
- ``isEmpty``
- ``isFull``
- ``count``
- ``capacity``
- ``freeCapacity``
### Indices
- ``Index``
- ``startIndex``
- ``endIndex``
- ``indices``
### Accessing Elements
- ``subscript(position:)``
- ``swapAt(_:_:)``
- ``edit(_:)``
### Memory Management
- ``reallocate(capacity:)``
- ``reserveCapacity(_:)``
- ``copy()``
- ``copy(capacity:)``
### Spans
- ``span``
- ``span(after:)``
- ``span(before:)``
- ``mutableSpan``
- ``mutableSpan(after:)``
- ``mutableSpan(before:)``
### Appending Items
- ``append(_:)``
- ``pushLast(_:)``
- ``append(count:initializingWith:)``
- ``append(moving:)-(UnsafeMutableBufferPointer<Element>)``
- ``append(moving:)-(OutputSpan<Element>)``
- ``append(moving:)-(RigidArray<Element>)``
- ``append(copying:)-(Sequence<Element>)``
- ``append(copying:)-(Span<Element>)``
- ``append(copying:)-(UnsafeBufferPointer<Element>)``
- ``append(copying:)-(UnsafeMutableBufferPointer<Element>)``
### Inserting Items
- ``insert(_:at:)``
- ``insert(count:at:initializingWith:)``
- ``insert(moving:at:)-(OutputSpan<Element>,_)``
- ``insert(moving:at:)-(RigidArray<Element>,_)``
- ``insert(moving:at:)-(UnsafeMutableBufferPointer<Element>,_)``
- ``insert(consuming:at:)``
- ``insert(copying:at:)-(Collection<Element>,_)``
- ``insert(copying:at:)-(Span<Element>,_)``
- ``insert(copying:at:)-(UnsafeBufferPointer<Element>,_)``
- ``insert(copying:at:)-(UnsafeMutableBufferPointer<Element>,_)``
### Replacing Items
- ``replaceSubrange(_:newCount:initializingWith:)``
- ``replaceSubrange(_:moving:)-(_,OutputSpan<Element>)``
- ``replaceSubrange(_:moving:)-(_,RigidArray<Element>)``
- ``replaceSubrange(_:moving:)-(_,UnsafeMutableBufferPointer<Element>)``
- ``replaceSubrange(_:consuming:)``
- ``replaceSubrange(_:copying:)-(_,Collection<Element>)``
- ``replaceSubrange(_:copying:)-(_,Span<Element>)``
- ``replaceSubrange(_:copying:)-(_,UnsafeBufferPointer<Element>)``
- ``replaceSubrange(_:copying:)-(_,UnsafeMutableBufferPointer<Element>)``
### Removing Items
- ``removeAll()``
- ``removeLast()``
- ``popLast()``
- ``removeLast(_:)``
- ``remove(at:)``
- ``removeSubrange(_:)-(Range<Int>)``
- ``removeSubrange(_:)-(RangeExpression<Int>)``