Skip to content

fix basic_ordered_hash_map_gen: return acc at end of bucket_length#11

Open
cuiweixie wants to merge 1 commit intomoonbitlang:mainfrom
cuiweixie:fix/ordered-hash-map-bucket-length
Open

fix basic_ordered_hash_map_gen: return acc at end of bucket_length#11
cuiweixie wants to merge 1 commit intomoonbitlang:mainfrom
cuiweixie:fix/ordered-hash-map-bucket-length

Conversation

@cuiweixie
Copy link
Copy Markdown

Summary

  • bucket_length is tail-recursive with an accumulator; the Empty case must return acc, not 0, so chains longer than one slot are counted correctly.

Test plan

  • Run any tests covering ordered hash map or code paths using bucket_length.

Empty should yield the accumulated chain length, not 0.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant