How do I check for a string occurance in an array? I mean sure I can loop, but is there a standard function?
at first I did:
if(str in ["first", "second", "third"])
but it complained that in
only works with associative arrays.
I tried to quickly lookup the phobos docs but didn't find any module related to arrays.
So is there anything, or do I just have to loop through it manually?
Edit:
I'm on D1, phobos.