Jamie Balfour

Welcome to my personal website.

Find out more about me, my personal projects, reviews, courses and much more here.

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.9.8

Prior to version 1.9.8 (Chirnside), this function would return false when the list had a size smaller than 1. As of version 1.9.8 it returns a null.

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

Comments are welcome and encouraged, including disagreement and critique. However, this is not a space for abuse. Disagreement is welcome; personal attacks, harassment, or hate will be removed instantly. This site reflects personal opinions, not universal truths. If you can’t distinguish between the two, this probably isn’t the place for you.

list_dequeue"/>

Comments powered by BalfComment

Feedback 👍
Comments are sent via email to me.