Skip to content

nightly-2024-06-26: feat: Add `map`, `fold`, `reduce`, `any`, and `all` for slices (#5331)

Pre-release
Pre-release
Compare
Choose a tag to compare
@github-actions github-actions released this 26 Jun 02:17
· 1004 commits to master since this release
03e25b4
# Description

## Problem\*

## Summary\*

Looks like these were removed back when we split arrays from slices
since they no longer shared the array implementation. I've added them
back.

## Additional Context

Currently requires https://github.com/noir-lang/noir/pull/5332 to work
due to a panic in the type system found while adding to the slices test.

## Documentation\*

Check one:
- [ ] No documentation needed.
- [x] Documentation included in this PR.
- [ ] **[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.