def get_items(i, l):
    """
    Get a sublist of list elements by their indices

    :param list[int] i: a list of elements indices
    :param list l: list
    :return list: a list of the desired elements
    """
    return map(l.__getitem__, i)