IndexOf

find the index of the first occurence of an item in a list, or -1

alias IndexOf = staticIndexOf

Examples

static assert (IndexOf!(2, 1,2,3) == 1);

Meta