// List operations benchmark
fn main() {
    // Create vec of 10000 numbers
    let nums: Vec<i64> = (1..=10000).collect();

    // Map: double each number
    let doubled: Vec<i64> = nums.iter().map(|x| x * 2).collect();

    // Filter: keep even numbers
    let evens: Vec<i64> = doubled.iter().filter(|x| *x % 4 == 0).cloned().collect();

    // Fold: sum all
    let sum: i64 = evens.iter().sum();

    println!("Sum: {}", sum);
}
