To make datum a variable you need to use mitems: import options type T = ref object data: seq[Option[T]] proc p(t: var T) = for datum in t.data.mitems: datum = none(T) Run
- How does one get a mutable iterator? adnan
- Re: How does one get a mutable iterator? adnan
- Re: How does one get a mutable iterator? lscrd