View Source edb_server_sets (edb v0.3.0)

Summary

Types

set/1

-type set(A) :: #{A => term()}.

Functions

fold(Function, Acc0, Set)

-spec fold(Function, Acc0, Set) -> Acc1
              when Function :: fun((A, Acc) -> Acc), Set :: set(A), Acc0 :: Acc, Acc1 :: Acc.

intersection(L, R)

-spec intersection(L :: set(A), R :: set(A)) -> set(A).

is_element(X, Set)

-spec is_element(X :: A, Set :: set(A)) -> boolean().

is_empty(Set)

-spec is_empty(set(_)) -> boolean().

map_subtract_keys(Map, KeysToRemove)

-spec map_subtract_keys(Map :: #{K => V}, KeysToRemove :: set(K)) -> #{K => V}.

subtract(L, R)

-spec subtract(L :: set(A), R :: set(A)) -> set(A).

take_element(A, Set)

-spec take_element(A, #{A => []}) -> {found, #{A => []}} | not_found.

to_map(S, V)

-spec to_map(set(K), V) -> #{K => V}.

union(Sets)

-spec union([set(A)]) -> set(A).

union(L, R)

-spec union(L :: set(A), R :: set(A)) -> set(A).