def apply_intervals(list_: list, intervals: list) -> list:
    """
    Apply slice lists in a list.

    >>> list_with_elements = ['spam', 'eggs', 'foo', 'bar']

    >>> intervals = [0, 2, 3]

    >>> apply_intervals(list_with_elements, intervals)
    ['spam', 'foo', 'bar']
    """
    return [list_[interval] for interval in intervals]