2025-01-30 11:15:38 +00:00
|
|
|
---
|
|
|
|
---
|
|
|
|
|
|
|
|
# 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.
|
|
|
|
|
2025-01-30 11:15:38 +00:00
|
|
|
### to-list
|
|
|
|
|
|
|
|
```
|
2025-01-30 11:49:19 +00:00
|
|
|
itrs:to-list ITR
|
2025-01-30 11:15:38 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
Consume the elements of the iterator ITR and return the elements as a list.
|