ucl/_docs/mod/itrs.md
Leon Mika 142abeb990 Added iterators
Iterators are an unbounded sequence of elements that can only be consumed one-by-one.
2025-03-23 12:00:58 +11:00

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.