| 1 # Iterators |
1 # Iterators |
| |
2 |
| |
3 <warning> |
| |
4 Outdated - Rewrite! |
| |
5 </warning> |
| 2 |
6 |
| 3 In UCX 3 a new feature has been introduced to write own iterators, that work with the `cx_foreach` macro. |
7 In UCX 3 a new feature has been introduced to write own iterators, that work with the `cx_foreach` macro. |
| 4 In previous UCX releases there were different hard-coded foreach macros for lists and maps that were not customizable. |
8 In previous UCX releases there were different hard-coded foreach macros for lists and maps that were not customizable. |
| 5 Now, creating an iterator is as simple as creating a `CxIterator` struct and setting the fields in a meaningful way. |
9 Now, creating an iterator is as simple as creating a `CxIterator` struct and setting the fields in a meaningful way. |
| 6 |
10 |