I think what you are missing is mitems. (from 'system.nim')
proc mvalues[T](s: var seq[T]): auto {.noSideEffect.}=
return iterator(): var T =
for val in s.mitems:
yield val
var mit = s.mvalues
- Closure iterators that yield mutable values mratsim
- Re: Closure iterators that yield mutable values Parashurama
