Queue
public class Queue<Element> where Element : Equatable
Queue data structures
-
All the elements inside the
QueueDeclaration
Swift
public var allElements: [Element] { get } -
Enqueues new element at the end of the queue
Declaration
Swift
public func enqueue(_ element: Element)Parameters
element<#element description#>
-
Dequeues first element from the
QueueuDeclaration
Swift
@discardableResult public func dequeue() -> BoolReturn Value
Boolean result, indicating whether dequeue operation succeeded or failed
View on GitHub
Queue Class Reference