Skip to content

Implement yield $x#426

Open
01mf02 wants to merge 1 commit intomainfrom
yield
Open

Implement yield $x#426
01mf02 wants to merge 1 commit intomainfrom
yield

Conversation

@01mf02
Copy link
Copy Markdown
Owner

@01mf02 01mf02 commented Apr 3, 2026

This implements yield $x, as a complement to break $x.

This is WIP to address ynqa/jnv#114.

$ cargo run -q -- -n 'label $x | (((1, (2 | yield $x)) | . - 1))'
0
2
$ cargo run -q -- -n 'label $x | ((1, (2 | yield $x), 3, (4 | yield $x)) | empty)'
2
4

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