Idris2Doc : Structures.Collections.PriorityQueue

Structures.Collections.PriorityQueue

Definitions

interfacePriorityQueue : (Type->Type) ->Type
Parameters: queue
Methods:
empty : Orde=>queuee
  Return an empty queue
singleton : Orde=>e->queuee
  Create a queue containing only one element
isNull : queuee->Bool
  Return true if the queue is empty
length : queuee->Nat
  Returns the number of elements in the queue
findMin : queuee->Maybee
  Find the minimum element, if there is one
meld : queuee->queuee->queuee
  Merge two queues
insert : e->queuee->queuee
  Insert an element into the queue
deleteMin : queuee->queuee
  Removes the minimum element from the queue
Does nothing to the empty queue
fromFoldable : Orde=>Foldablem=>me->queuee
  Converts an Ord t => Foldable m => m t into a queue of t
queueFoldl : (acc->e->acc) ->acc->queuee->acc
  Foldl implementation for queues
empty : PriorityQueuequeue=>Orde=>queuee
  Return an empty queue

Totality: total
Visibility: public export
singleton : PriorityQueuequeue=>Orde=>e->queuee
  Create a queue containing only one element

Totality: total
Visibility: public export
isNull : PriorityQueuequeue=>queuee->Bool
  Return true if the queue is empty

Totality: total
Visibility: public export
length : PriorityQueuequeue=>queuee->Nat
  Returns the number of elements in the queue

Totality: total
Visibility: public export
findMin : PriorityQueuequeue=>queuee->Maybee
  Find the minimum element, if there is one

Totality: total
Visibility: public export
meld : PriorityQueuequeue=>queuee->queuee->queuee
  Merge two queues

Totality: total
Visibility: public export
insert : PriorityQueuequeue=>e->queuee->queuee
  Insert an element into the queue

Totality: total
Visibility: public export
deleteMin : PriorityQueuequeue=>queuee->queuee
  Removes the minimum element from the queue
Does nothing to the empty queue

Totality: total
Visibility: public export
fromFoldable : PriorityQueuequeue=>Orde=>Foldablem=>me->queuee
  Converts an Ord t => Foldable m => m t into a queue of t

Totality: total
Visibility: public export
queueFoldl : PriorityQueuequeue=> (acc->e->acc) ->acc->queuee->acc
  Foldl implementation for queues

Totality: total
Visibility: public export