Discord.SortedSet.remove

You're seeing just the function remove, go back to Discord.SortedSet module for more information.

Specs

remove(set :: t(), item :: any()) ::
  t() | Discord.SortedSet.Types.common_errors()

Removes an item from the set.

If the item is not present in the set, the set is simply returned. To retrieve the index of where the item was removed from, see index_remove/2. There is no performance penalty for requesting the index while removing an item.

Performance

Unlike a hash based set that has O(1) removes, the SortedSet is O(log(N/B)) + O(log(B)) where N is the number of items in the SortedSet and B is the Bucket Size.