IterVar returns the iteration variable name. For one-variable comprehensions, the iter var refers to the element value when iterating over a list, or the map key when iterating over a map. For two-variable comprehneions, the iter var refers to the list index or the map key.
()
| 276 | // For two-variable comprehneions, the iter var refers to the list index or the |
| 277 | // map key. |
| 278 | IterVar() string |
| 279 | |
| 280 | // IterVar2 returns the second iteration variable name. |
| 281 | // |
no outgoing calls