def next_hypercube(pos, div):
    """Jumps to next hypercube in cubical cover

    Parameters
    ----------
    pos : :obj:`list`
        List of integer values specifying the position of the current
        hypercube. This is edited to the next hypercube.

    div : :obj:`list`
        List of integer values specifying how many hypercubes divide each
        dimension.

    Example
    -------
        >>> pos = [1,1,1]
        >>> div = [3,3,2]
        >>> next_hypercube(pos, div)
        >>> pos
        [1, 2, 0]

    """
    for i in range(len(pos)):
        if pos[-i - 1] < div[-i - 1] - 1:
            pos[-i - 1] += 1
            for k in range(i):
                pos[-k - 1] = 0
            break
