Function getBucket

Returns a bucket with the given entries. If the entries are the same as the original bucket's entries then the original bucket is returned.

  • Parameters

    • original: Bucket

      The original bucket to be rebuilt.

    • entries: Entry[]

      Entries of the new bucket.

    Returns Bucket

    A bucket with the given entries.