ucl/_docs/mod/itrs.md

29 lines
462 B
Markdown
Raw Normal View History

---
---
# Iterator Builtins
### from
```
itrs:from LIST
```
Returns an iterator which will step through the elements of LIST.
2025-01-30 11:49:19 +00:00
### tap
```
itrs:tap ITR BLOCK
```
Returns an iterator which will execute BLOCK for each element consumed. The elements are consumed from the
iterator ITR. BLOCK will only be executed when the element is consumed.
### to-list
```
2025-01-30 11:49:19 +00:00
itrs:to-list ITR
```
Consume the elements of the iterator ITR and return the elements as a list.