google / google/xls

Question: break in for loop

Open
#402 1 comment 0 reactions 0 assignees View on GitHub
dslx long-term-enhancement
Dominant language
C++
Stars
1.9k
Forks
283
Avg merge
2d 10h
Merged PRs (30d)
135

Description

Hello!

Tell me, is it possible to use break in a loop in the DSLX , i.e. eg

```rust
let _ = for (i, accum) : (u8, u8) in order (u8:0, u8:10)
{
if condition then break
accum + i;
}(u8:0);
```

If I wrote in the wrong place, tell me about it.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.