// List operations benchmark
fn main(): Unit = {
    // Create a list of 10000 numbers
    let nums = List.range(1, 10001)

    // Map: double each number
    let doubled = List.map(nums, fn(x: Int): Int => x * 2)

    // Filter: keep even numbers
    let evens = List.filter(doubled, fn(x: Int): Bool => x % 4 == 0)

    // Fold: sum all
    let sum = List.fold(evens, 0, fn(acc: Int, x: Int): Int => acc + x)

    Console.print("Sum: " + toString(sum))
}
