Correct, children is an [iterator](https://nim-lang.org/docs/macros.html#children.i%2CNimNode) so you can't slice it. When you do `for child in body[1 .. ^1]:` you're basically taking the sequence of Nim nodes, creating a new sequence of Nim nodes containing only the slice, and then calling the `items` iterator on that. Note that `children` is exactly the same iterator as `items` for Nim nodes.
- How to iterate a slice of children of a NimNode ? krakengore
- How to iterate a slice of children of a NimNode ? Yardanico
- How to iterate a slice of children of a NimNode ? PMunch
- How to iterate a slice of children of a NimNode ? Yardanico
- How to iterate a slice of children of a NimNod... krakengore
- How to iterate a slice of children of a N... PMunch
- How to iterate a slice of children of... krakengore