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
If you are still working in Swift 1.x
then try,
let testArray = ["A","B","C"] let indexOfA = find(testArray, "A") let indexOfB = find(testArray, "B") let indexOfC = find(testArray, "C")