Skip to content

feat: array wildcard#18

Merged
anton62k merged 2 commits intomasterfrom
feat/array-wildcard
Jan 30, 2026
Merged

feat: array wildcard#18
anton62k merged 2 commits intomasterfrom
feat/array-wildcard

Conversation

@anton62k
Copy link
Contributor

@anton62k anton62k commented Jan 30, 2026

Summary by cubic

Adds array wildcard [*] to map over arrays and access nested values. Works with dot chaining and sum/avg; multiple wildcards flatten nested arrays.

  • New Features
    • Map property access across arrays: items[*].price -> [10, 20, 30]
    • Flatten nested arrays with chained wildcards: orders[].items[] -> [1, 2, 3, 4]
    • sum and avg support wildcard paths: sum(items[].price), avg(items[].rating)
    • Updated semantics to map props on arrays and flatten array-of-arrays; added tests and spec examples

Written for commit 2c42c6d. Summary will update on new commits. Review in cubic

@sonarqubecloud
Copy link

@anton62k anton62k merged commit 317f9ba into master Jan 30, 2026
3 checks passed
@anton62k anton62k deleted the feat/array-wildcard branch January 30, 2026 19:23
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.

1 participant