how do i get item index from a list without loop i have tried the following
but did not success to return the index
B4X:
Type Person(name As string, number As Int)
Private persons As List
Dim pritem As person
pritem.name = "item1"
pritem.number = 0
persons.add(pritem)
persons.IndexOf("item1")
but did not success to return the index