Skip to content

feat(array): add generate function - #497

Draft
Seddryck wants to merge 5 commits into
mainfrom
feature/generate
Draft

feat(array): add generate function#497
Seddryck wants to merge 5 commits into
mainfrom
feature/generate

Conversation

@Seddryck

@Seddryck Seddryck commented Aug 6, 2026

Copy link
Copy Markdown
Owner

Summary

  • add the generate array-construction function for iterating from any seed
  • support required named while and next expressions plus optional result projection
  • preserve the specified whileresultnext evaluation order
  • add function metadata, conformance cases, parser/factory integration, and focused behavioral tests

Why

Closes #463. Expressif can now materialize a sequence as one array value while keeping iteration state separate from projected output values.

Implementation notes

Generate implements IFunction directly because its input is an arbitrary seed, not an existing array. Named arguments may be supplied in any order, which supports the documented Fibonacci form where result precedes next.

Validation

  • dotnet build Expressif.Testing/Expressif.Testing.csproj --no-restore (net8.0, net9.0, net10.0)
  • full .NET 8 test suite: 2,768 passed, 1 skipped

@coderabbitai

coderabbitai Bot commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 695e0ef5-0617-4083-ad0f-c75513aefa57

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@sonarqubecloud

sonarqubecloud Bot commented Aug 7, 2026

Copy link
Copy Markdown

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.

Generate an array from a seed

1 participant