ucl/_docs/mod/itrs.md
Leon Mika 6a50fb0025
All checks were successful
Build / build (push) Successful in 2m7s
Added itrs:tap
2025-01-30 22:49:19 +11:00

29 lines
462 B
Markdown

---
---
# Iterator Builtins
### from
```
itrs:from LIST
```
Returns an iterator which will step through the elements of LIST.
### 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
```
itrs:to-list ITR
```
Consume the elements of the iterator ITR and return the elements as a list.