Hacker News new | ask | show | jobs
by dmart 548 days ago
I would have liked to see a comparison in the fold() section that functions the same way as the original for loop:

    list_of_lists.into_iter().fold(Vec::new(), 
        |mut accumulator, list| {
            accumulator.extend(list);
            accumulator
        }
    )