Goonstation 13 - Modules - TypesDefine Details

_std/macros/list.dm

LAZYLISTORAdd an item to the list if not already present, if the list is null it will initialize it
LAZYLISTSETLENSets the length of a lazylist
LAZYLISTADDASSOCAdds the value V to the key K - if the list is null it will initialize it
LAZYLISTREMOVEASSOCRemoves the value V from the key K, if the key K is empty will remove it from the list, if the list is empty will set the list to null
LAZYLISTACCESSASSOCAccesses an associative list, returns null if nothing is found

Define Details

LAZYLISTACCESSASSOC

Accesses an associative list, returns null if nothing is found

LAZYLISTADDASSOC

Adds the value V to the key K - if the list is null it will initialize it

LAZYLISTOR

Add an item to the list if not already present, if the list is null it will initialize it

LAZYLISTREMOVEASSOC

Removes the value V from the key K, if the key K is empty will remove it from the list, if the list is empty will set the list to null

LAZYLISTSETLEN

Sets the length of a lazylist