Functions for working with ranges in lists.
ETS is fast only as a key-value store. But some data files contains ranges: From..To. The fastest way is using lists for storing this values.
There is two types of these lists:
* with booleans: [{1,3}, 6, {8,9}]. For example, is_compat;
* with values: [{{1,3}, value1}, {{4,12}, value2}].
in_list function is for the first type.
search function is for the second type.
| in_list/2 | |
| search/2 |
in_list(T::[{integer(), integer()} | integer()], H::integer()) -> boolean()
search(T::[{{integer(), integer()} | integer(), term()}], H::integer()) -> boolean()
Generated by EDoc