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.2
.index(where:) was changed to .firstIndex(where:)
array.firstIndex(where: {$0 == "person1"})