zscript-doc/api/level/LineIdIterator.md

24 lines
371 B
Markdown
Raw Normal View History

2018-12-29 16:05:19 -08:00
# LineIdIterator
Iterates over line indices with a specified tag.
```
class LineIdIterator : Object
2018-12-29 16:05:19 -08:00
{
static LineIdIterator Create(int tag);
int Next();
}
```
- `Create`
Creates a new iterator over lines with tag `tag`.
- `Next`
Returns the index of the current line and advances the iterator. Returns
`-1` when the list is exhausted.
2018-12-29 16:05:19 -08:00
<!-- EOF -->