Is there a way to get every n * i element of a vector?

后端 未结 0 1631
执念已碎
执念已碎 2021-01-05 04:01

I have this vector:

let example = vec![1, 2, 3, 4, 5, 6, 7, 8, 9];

I want every third value of this

相关标签:
回答
  • 消灭零回复
提交回复
热议问题