def print_with_iterator_reverse_bis(l):
    """
    Print elements of a list using an iterator in reverse order.

    :param l: The list to be printed
    :type l: dict
    """
    it = list.get_listiterator(l, r=True)
    while (list.hasPrevious(it)):
        print(list.previous(it), end=' ')
    print()
Beispiel #2
0
def print_with_iterator_reverse_bis(l):
    """
    Print elements of a list using an iterator in reverse order.
    
    :param l: The list to be printed
    :type l: dict
    """
    l_iterator = list.get_listiterator(l, from_the_end=True)
    while list.hasPrevious(l_iterator):
        print(list.previous(l_iterator))
    return None
Beispiel #3
0
def print_with_iterator_reverse(l):
    """
    Print elements of a list using an iterator in reverse order.

    :param l: The list to be printed
    :type l: dict
    """
    it = list.get_listiterator(l, from_the_end=True)

    while list.hasPrevious(it):
        print(list.previous(it)['value'], end=" ")

    print()