ID:163885
 
I was just wondering if it were possible to optimize the list+="". Example:

var/list1 = list()
if(src.administrator)
list1 += "game admin"
list1 += "police"


Is it possible to optimize list1 += "game admin" and "police" into one line?
LucifersHellion wrote:
I was just wondering if it were possible to optimize the list+="". Example:

> var/list1 = list()
> if(src.administrator)
> list1 += "game admin"
> list1 += "police"
>

Is it possible to optimize list1 += "game admin" and "police" into one line?

Uhh... Edited.
var/list1=list()
if(src.administrator)
list1 += list("game","admin police")

I wonder if that changes much <.<

It's magic!
In response to Kaiochao2536
It's a list...not a string..so
list1.Add("police","game admin")
In response to Kazekage
I'm pretty sure both ways work :|
In response to Kaiochao2536
It does