ucl/_docs/mod/itrs.md
Leon Mika 2fcfe9d540 Added iterators
Iterators are an unbounded sequence of elements that can only be consumed one-by-one.
2025-01-30 22:15:38 +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.