Function advent_of_code_2023::day_5::progress_id_range
source · fn progress_id_range(
id_range: &IdRange,
almanac: &HashMap<Category, AlmanacSection>
) -> Vec<IdRange>
Expand description
Take a single range of ids to plant in one category and apply the relevant mapping from the almanac.
- Where different mappings apply to different parts of the range, return a separate continuous range for each
- Where a mapping is not defined, the id doesn’t change, but the category still advances