Enhanced Library
Step-by-Step Enhancements
- Sorting Books:
- Sort books by title.
- Sort books by year of publication.
- Grouping Books by Category:
- Group books by their category.
- Partitioning Books by Year:
- Partition books into those published before and after a certain year.
- Using Collect to Extract Specific Information:
- Use the
collectfunction to extract titles of books published after a certain year.
- Calculating Average Publication Year by Category:
- Calculate the average publication year for each category.