View Source argo_index_map (argo v1.0.4)
Summary
Types
-type index() :: non_neg_integer().
-opaque iterator(KeyType, ValueType)
-type iterator_order() :: iterator_order(key()).
-type iterator_order(Key) :: ordered | reversed | iterator_order_func(Key).
-type key() :: dynamic().
-type t(KeyType, ValueType) :: #argo_index_map{indices :: #{KeyType => index()}, entries :: array:array({KeyType, ValueType})}.
-type value() :: dynamic().
Functions
-spec iterator(IndexMap, Order) -> Iterator when Key :: key(), Value :: value(), IndexMap :: t(Key, Value), Order :: iterator_order(Key), Iterator :: iterator(Key, Value).
-spec new() -> IndexMap when IndexMap :: t().
-spec size(IndexMap) -> non_neg_integer() when IndexMap :: t().