I am trying to find an item index by searching a list. Does anybody know how to do that?
item index
list
I see there is list.StartIndex and <
list.StartIndex
In Swift 4/5, use "firstIndex" for find index.
let index = array.firstIndex{$0 == value}