-
Notifications
You must be signed in to change notification settings - Fork 144
Deque
An implementation of a double-ended queue.
Returns the total number of values stored.
This method only operates on data in memory.
Returns: number
Iterates over the deque from left to right.
This method only operates on data in memory.
Returns: function
Returns the value at the left side of the deque without removing it.
This method only operates on data in memory.
Returns: *
Returns the value at the right side of the deque without removing it.
This method only operates on data in memory.
Returns: *
Removes and returns a value from the left side of the deque.
This method only operates on data in memory.
Returns: *
Removes and returns a value from the right side of the deque.
This method only operates on data in memory.
Returns: *
Parameter | Type |
---|---|
obj | * |
Adds a value of any type to the left side of the deque.
This method only operates on data in memory.
Returns: nil
Parameter | Type |
---|---|
obj | * |
Adds a value of any type to the right side of the deque.
This method only operates on data in memory.
Returns: nil