Module ux_ranges

Functions for working with ranges in lists.

Description

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.

Function Index

in_list/2
search/2

Function Details

in_list/2

in_list(T::[{integer(), integer()} | integer()], H::integer()) -> boolean()

search/2

search(T::[{{integer(), integer()} | integer(), term()}], H::integer()) -> boolean()


Generated by EDoc