def missing_elements(sorted_list):
    """Find missing elements in a list of consecutive integers, given that the list is sorted."""
    return [
        x for x in range(sorted_list[0], sorted_list[-1] + 1) if x not in sorted_list
    ]