I need to find the index of an element in a List
, similar to indexOf
method provided by Java API.
My current solution is to iterate over the list to find the index myself. I just wonder if there's another way to perform this task since it is quite basic.
I am aware of this discussion: https://success.salesforce.com/ideaView?id=08730000000b9RZAAY
I wonder if there's any update since the post was a year ago (as of October 2013).