ID:2513473
 
for( var/v as num in list )
Same thing you're doing when you do

verb/Something(mob/M as mob in list)


It's faster than casting the variable type and filtering that way, as long as you don't need the compile-time security.
Ran into it reading the reference via F1 in dreammaker. I can see the usefulness but I myself usually keep lists type specific.
In response to Kozuma3
On that note, it's more efficient to loop through a list of things that you know the type of with "as anything":
// this is faster
for(var/mob/player/p as anything in Players)

// vs this
for(var/mob/player/p in Players)

With "as anything", the loop doesn't bother filtering the list at all, so if you know for sure that Players only contains /mob/player instances (which it should), then it's faster.
In response to Kaiochao
That makes sense, and is cool to know. TILx2