feat: added items command for Records (#8640)

# Description

This PR adds an `items` command which allows the user to iterate over
both `columns` and `values` of a `Record<>` type at the same time.


![image](https://user-images.githubusercontent.com/3835355/227976277-c9badbb2-2e31-4243-8d00-7e28f2289587.png)

# User-Facing Changes

No breaking changes, only a new `items` command.

# Formatting

- `cargo fmt --all -- --check` 👌 
- `cargo clippy --workspace -- -D warnings -D clippy::unwrap_used -A
clippy::needless_collect` 👌
- `cargo test --workspace` 👌
This commit is contained in:
Sygmei
2023-04-14 21:42:33 +02:00
committed by GitHub
parent a122e55129
commit 71611dec4f
3 changed files with 158 additions and 0 deletions

View File

@ -56,6 +56,7 @@ pub fn create_default_context() -> EngineState {
GroupBy,
Headers,
Insert,
Items,
Join,
SplitBy,
Take,