def rolling_window(iterable, size):
    """
    :param iterable: the iterable over which to make windows
    :param size: length of desired windows
    :returns: an iterable containing rolling windows
    """
    iter_length = len(iterable)
    return [iterable[x : x + size] for x in range(iter_length - size + 1)]