Co-authored-by: DreamySkrell <>
This commit is contained in:
DreamySkrell
2023-05-31 16:43:29 +02:00
committed by GitHub
parent 4aeccd5cff
commit b3d49c48ae
3 changed files with 51 additions and 1 deletions

View File

@@ -831,3 +831,12 @@
. = list()
for (var/string in L)
. += capitalize(string)
// Transforms a list of lists (of lists) into a single flat list.
/proc/flatten_list(var/list/L)
. = list()
for(var/M in L)
if(!islist(M))
. += M
else
. += flatten_list(M)