-
Notifications
You must be signed in to change notification settings - Fork 1
DsQueue
Hyomoto edited this page Dec 12, 2020
·
14 revisions
Jump To | Go Back |
Arguments | Methods | Variables |
---|
Implements: DsChain
A garbage-collected queue.
queue = new DsQueue()
queue.enqeue( "Hello!" )
show_debug_message( queue.dequeue() );
Name | Type | Purpose |
---|---|---|
values... | mixed |
The initial values to be pushed to the queue |
Jump To | top |
enqueue | enqueue_at_head | dequeue | head | tail | copy | is |
---|
Returns: N/A undefined
Name | Type | Purpose |
---|---|---|
values... | mixed |
Enqueues the values at the tail of the queue |
Returns: N/A undefined
Name | Type | Purpose |
---|---|---|
values... | mixed |
Enqueues the values at the head of the queue |
Returns: Mixed
Name | Type | Purpose |
---|---|---|
values... | mixed |
Removes the value at the front of the queue and returns it |
Returns: Mixed
Name | Type | Purpose |
---|---|---|
values... | mixed |
Returns the value at the head of the queue |
Returns: Mixed
Name | Type | Purpose |
---|---|---|
values... | mixed |
Removes the value at the tail of the queue and returns it |
Returns: DsQueue
Name | Type | Purpose |
---|---|---|
None |
Returns a copy of this DsQueue.
Returns: boolean (true
or false
)
Name | Type | Purpose |
---|---|---|
type | Constructor |
The Constructor to compare this against. |
Returns true
if the provided type is DsQueue.
Jump To | top |
---|
- tail_link - the value at the tail_link of the queue
Devon Mullane 2020