mirror of
https://github.com/Citadel-Station-13/Citadel-Station-13-RP.git
synced 2025-12-09 16:43:51 +00:00
13 lines
221 B
Plaintext
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)
|