Use
    
    
    for it in someseq.toOpenarray(1, someseq.len-1):
      echo it
    
    
    Run

Changing the slicing for nocopy by default is discussed here:

  * 
[https://github.com/nim-lang/rfcs/issues/12](https://github.com/nim-lang/rfcs/issues/12)
  * 
[https://github.com/nim-lang/RFCs/issues/88](https://github.com/nim-lang/RFCs/issues/88)
  * 
[https://github.com/nim-lang/RFCs/issues/178](https://github.com/nim-lang/RFCs/issues/178)



and many more issues (all linked to those 3 RFCs)

  * 

Reply via email to