Discord.SortedSet.NifBridge.append_bucket

You're seeing just the function append_bucket, go back to Discord.SortedSet.NifBridge module for more information.
Link to this function

append_bucket(set, terms)

View Source

Specs

Appends a buckets worth of sorted terms to the SortedSet

This is mostly an internal implementation detail, it is used to implement the Discord.SortedSet.from_enumerable/2 and Discord.SortedSet.from_proper_enumerable/2 functions. The NIF will append a buckets worth of items without performing any checks on them. This is a very efficient way to build the SortedSet but care must be taken since the call circumvents the sorting and sanity checking logic. Use the constructors in Discord.ßSortedSet for a safer and more ergonomic experience, use great care when calling this function directly.