More common operations on lists using folds.