mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-01-08 16:31:55 +00:00
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user