Quickest Way to Test If Item Is In a List?

Cyrix

Client
Регистрация
16.12.2011
Сообщения
390
Благодарностей
11
Баллы
18
What is the quickest way to test if an item (such as a string) is in a list of such items?

Currently I am using loop + IF, but this is super slow for large lists.

Is there a more efficient way?

Thanks.
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 712
Баллы
113

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)