Files
swift-collections/Sources/DequeModule/DequeModule.docc/Extensions/Deque.md
T

65 lines
1.2 KiB
Markdown

# ``DequeModule/Deque``
## Topics
### Creating a Deque
- ``init()``
- ``init(_:)-8tyaw``
- ``init(_:)-1tqf4``
- ``init(minimumCapacity:)``
- ``init(repeating:count:)-4v1gt``
- ``init(unsafeUninitializedCapacity:initializingWith:)``
### Inspecting a Deque
- ``count-8wcnm``
- ``isEmpty``
### Manipulating Elements at the Front
- ``first``
- ``prepend(_:)``
- ``prepend(contentsOf:)-96y15``
- ``prepend(contentsOf:)-51zn6``
- ``removeFirst()-1vdmt``
- ``removeFirst(_:)-2vuji``
- ``popFirst()``
- ``prefix(_:)``
### Manipulating Elements at the End
- ``last``
- ``append(_:)-9h4m7``
- ``append(contentsOf:)-8rqnl``
- ``append(contentsOf:)-29aoh``
- ``removeLast()``
- ``removeLast(_:)``
- ``popLast()``
- ``suffix(_:)``
### Manipulating Elements Elsewhere
- ``subscript(_:)-9nk44``
- ``subscript(_:)-6ee8i``
- ``subscript(_:)-1klky``
- ``subscript(_:)-ejld``
- ``insert(_:at:)-9hsp7``
- ``insert(contentsOf:at:)-1d60f``
- ``replaceSubrange(_:with:)-5rtzd``
- ``remove(at:)-3imgi``
### Reordering Elements
- ``swapAt(_:_:)-7910s``
- ``sort()``
- ``sort(by:)``
- ``reverse()``
- ``shuffle()``
- ``shuffle(using:)``
- ``partition(by:)-90y0t``
### Memory Management
- ``reserveCapacity(_:)``