PriorityQueue

A data structure that allows efficient insertion and dequeueing of prioritized items.

PriorityQueue.swift:10
protocol PriorityQueue
Browse conforming types

This protocol does not make any guarantees regarding the order of elements with the same priority. Use the Stable wrapper to ensure a FIFO order, if this property is desired.