To use this website fully, you first need to accept the use of cookies. By agreeing to the use of cookies you consent to the use of functional cookies. For more information read this page.

Official ZPE/YASS documentationlist_dequeue

list_dequeue (list l) ⇒ mixed

Gets and removes the first element from the list and returns the value.

Alternative function names: list_deque
First available: Version 1.4.2

Notes

Prior to version 1.7.3, this function would return a new list containing the updated list and the return value.

Prior to version 1.8.7

Prior to version 1.8.7 (Portman), there is an implementation issue in which list_pop and list_dequeue have their implementations the wrong way around. It appears that the names were given to them the wrong way around when they were added. Version 1.8.7 now makes list_pop take the element at the end of list or array and list_dequeue take from the start of the list or array.

Comments

There are no comments on this page.

New comment
Reply
Provide feedback on this page
Comments are sent via email to me.