Skip to content

fix: lazy object comprehension#145

Merged
CertainLach merged 1 commit intomasterfrom
fix/lazy-array-comprehension
Jan 16, 2024
Merged

fix: lazy object comprehension#145
CertainLach merged 1 commit intomasterfrom
fix/lazy-array-comprehension

Conversation

@CertainLach
Copy link
Copy Markdown
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
@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