from collections import deque
from typing import Iterable
from typing import Deque


def array_shift(data: Iterable, shift: int) -> Deque:
    """
    left(-) or right(+) shift of array

    >>> arr = range(10)
    >>> array_shift(arr, -3)
    deque([3, 4, 5, 6, 7, 8, 9, 0, 1, 2])
    >>> array_shift(arr, 3)
    deque([7, 8, 9, 0, 1, 2, 3, 4, 5, 6])
    """
    deq = deque(data)
    deq.rotate(shift)
    return deq