Module ux_opt_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/1
search/2

Function Details

in_list/1

in_list(V) -> any()

search/2

search(Def, V) -> any()


Generated by EDoc