Other Extensions

The following extensions are available globally.

Heap algorithms

  • Declaration

    Swift

    extension RandomAccessCollection where Self: MutableCollection, Element: Comparable
    extension RandomAccessCollection
    where Self: MutableCollection & RangeReplaceableCollection, Element: Comparable
    extension RandomAccessCollection where Element: Comparable

Priority Queue