Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: lazy object comprehension #145

Merged
merged 1 commit into from
Jan 16, 2024
Merged

Conversation

CertainLach
Copy link
Owner

Array comprehension should be able to depend on its own result, and it is able in go-jsonnet/cpp-jsonnet.

Has minimal impact on the performance in the most cases.

Discovered while implementing day 4 of advent of code 2023.
https://github.com/CertainLach/AOC-2023/blob/2ab792288ecfd558473efe2fb3c1eca19f574814/day4.jsonnet#L23

@CertainLach CertainLach merged commit c9696b8 into master Jan 16, 2024
5 of 6 checks passed
@CertainLach CertainLach deleted the fix/lazy-array-comprehension branch January 16, 2024 11:02
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