Support foreach loops, the first version with just the row, and the second also providing the index of the row.
Make result satisfy the IsInputRange constraints so we can use it with functions like map, each, ...
See Implementation