我正在阅读的代码包含以下(略微更改)的RuST代码:
let new_var : Vec<...> = (0..1 << some_number)
.into_par_iter()
.map(...)
.collect();
I recognize that it iterates over a range and constructs elements of a Vec for each number.
But why does it bitshift the 0..1
range? What is the resulting iterator that gets iterated over?