nightly-2024-03-16: feat: add as_slice builtin function, add execution test (#4523)
Pre-release
Pre-release
·
1456 commits
to master
since this release
# Description ## Problem\* Expected to resolve slowdown in https://github.com/noir-lang/noir/pull/4504/ ## Summary\* Adds builtin function for `as_slice`, allowing it to be much more efficient (`O(1)` instead of `O(n)`) ## Additional Context ## Documentation\* Check one: - [x] No documentation needed. - [ ] Documentation included in this PR. - [ ] **[Exceptional Case]** 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: vezenovm <mvezenov@gmail.com>