ExHashRing.Utils (ex_hash_ring v7.0.0)
View SourceUtility functions used throughout ExHashRing
Summary
Functions
Take up to maximum items from a list.
Functions
@spec take_max(list :: [item], maximum :: non_neg_integer()) :: {list :: [item], count :: non_neg_integer()} when item: term()
Take up to maximum items from a list.
This function returns the items in reverse order and with a count of how many items were found.