@cu
def rotate(x, a):
    def torus_index(i, a, b):
        return b % (i + a)
        
    def rotate_el(i):
        return x[torus_index(i, a, len(x))]

    return map(rotate_el, indices(x))
dataset/ETHPy150Open bryancatanzaro/copperhead/copperhead/prelude_impl.py/rotate/swapped operands of `%`