indexOf

fun indexOf(value: T): Int

Find the index of value within items, using === as the test. This is different from List.indexOf, which uses equals() rather than ===. Therefore List.indexOf would find the wrong item if there are more than one item in the list that met the equals() test.

Return

The first index of value in the items list, or -1 if not found.