📜  锈和向量 - 无论代码示例

📅  最后修改于: 2022-03-11 14:56:44.706000             🧑  作者: Mango

代码示例1
// still waiting for grepper to add rust syntax highlighting

fn main() {
    let v = vec![1, 2, 3, 4, 5];
    let sum: u8 = a.iter().sum();
    println!("the total sum is: {}", sum);  // the total sum is: 15
}