I'm having this issue with my code where the compiler throws an error, saying Error: 'b' is not the first parameter; context: 'b.r'; see https://nim-lang.github.io/Nim/var_t_return.html, and I sorta understand what the var_t_return doc the error has a link to is trying to say, I just don't undertstand how I'm supposed to solve this issue because my return is based on both the first and second parameter.
I'm trying to make something like sequtils.zip for this Color tuple, defined in nim-lang/sdl2:
iterator mzip(a, b: var Color): tuple[x, y: var uint8] =
yield (a.r, b.r)
yield (a.g, b.g)
yield (a.b, b.b)
yield (a.a, b.a)