Goonstation 13 - Modules - TypesDefine Details

_std/lists.dm

/proc/move_elementMove a single element from position from_index within a list, to position to_index
/proc/move_rangeMove elements [from_index,from_index+len) to [to_index-len, to_index)
/proc/swap_rangeMove elements from [from_index, from_index+len) to [to_index, to_index+len)
/proc/reverse_list_rangeReverses a given list within the given range
/proc/flatten_listFlattens a keyed list into a list of it's contents
/proc/make_associativeMake a normal list an associative one
/proc/typecacheofLike typesof() or subtypesof(), but returns a typecache instead of a list.
is_type_in_typecacheChecks for specific types in specifically structured (Assoc "type" = TRUE|FALSE) lists ('typecaches')
/proc/typecache_filter_listRurns a new list with only atoms that are in the typecache list
/proc/typecache_filter_list_reverseReturn a new list with atoms that are not in the typecache list
/proc/typecache_filter_multi_list_exclusionSimilar to typecache_filter_list and typecache_filter_list_reverse but it supports an inclusion list and and exclusion list
/proc/weighted_pickPicks a random element from a list based on a weighting system.
/proc/english_listReturns a list in plain english as a string
reverse_listReverses a list in place

Define Details

is_type_in_typecache

Checks for specific types in specifically structured (Assoc "type" = TRUE|FALSE) lists ('typecaches')

reverse_list

Reverses a list in place