def iter_chunk(sequence, size):
    """
    Iterate sequence as chunks

    :param sequence: iterable sequence
    :param size: size of every chunk
    """
    length = len(sequence)
    for i in range(0, length, size):
        yield sequence[i:i + size]
