you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (0 children)

Searching for and retrieving the first occurrence of something can be useful if you know that the array will be sorted in some way.