You can try adding lent T to return types where necessary to avoid copies, iterators returning lent T are also supported. Do report issues on github with complete compilable test case.
- Nim for loop can't infer borrowed temporary references, --gc:arc trtt
- Re: Nim for loop can't infer borrowed temporary references, --g... trtt
- Re: Nim for loop can't infer borrowed temporary references,... Araq
- Re: Nim for loop can't infer borrowed temporary referen... cdome
