Iterators are an unbounded sequence of elements that can only be consumed one-by-one.
20 lines
246 B
Markdown
20 lines
246 B
Markdown
---
|
|
---
|
|
|
|
# Iterator Builtins
|
|
|
|
### from
|
|
|
|
```
|
|
itrs:from LIST
|
|
```
|
|
|
|
Returns an iterator which will step through the elements of LIST.
|
|
|
|
### to-list
|
|
|
|
```
|
|
lists:to-list ITR
|
|
```
|
|
|
|
Consume the elements of the iterator ITR and return the elements as a list. |