Files
Citadel-Station-13-RP/code/__HELPERS/lists/queue.dm
Zandario ed05e01a95 __HELPERS Cleaning and other things I decided to do. (#4584)
* Schizoposting

* The Crungly

* Tabbin' the JSON y'all

* Strings
2022-10-21 01:56:59 -07:00

13 lines
221 B
Plaintext

/**
* Returns the top(last) element from the list and removes it from the list (typical stack function)
*/
/proc/pop(list/L)
if(L.len)
. = L[L.len]
L.len--
/proc/popleft(list/L)
if(L.len)
. = L[1]
L.Cut(1,2)