Skip to content

Commit

Permalink
feat: Add a compile-time hash map type (noir-lang#5543)
Browse files Browse the repository at this point in the history
# Description

## Problem\*

Resolves noir-lang#5479

## Summary\*

Mostly copied over from our existing hash map with a few changes.
- Uses slices and grows automatically
- Uses `break`

## Additional Context

Like other comptime code, I'm avoiding documenting this until comptime
as a whole is stable

## Documentation\*

Check one:
- [ ] No documentation needed.
- [ ] Documentation included in this PR.
- [x] **[For Experimental Features]** Documentation to be submitted in a
separate PR.

# PR Checklist\*

- [x] I have tested the changes locally.
- [x] I have formatted the changes with [Prettier](https://prettier.io/)
and/or `cargo fmt` on default settings.

---------

Co-authored-by: Michael J Klein <[email protected]>
  • Loading branch information
jfecher and michaeljklein authored Jul 18, 2024
1 parent 63babcf commit c6e5c4b
Show file tree
Hide file tree
Showing 5 changed files with 854 additions and 0 deletions.
1 change: 1 addition & 0 deletions noir_stdlib/src/collections/mod.nr
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
mod vec;
mod bounded_vec;
mod map;
mod umap;
Loading

0 comments on commit c6e5c4b

Please sign in to comment.