@cu
def shift(x, a, d):
    def shift_el(i):
        i = i + a
        if i < 0 or i >= len(x):
            return d
        else:
            return x[i]
    return map(shift_el, indices(x))
dataset/ETHPy150Open bryancatanzaro/copperhead/copperhead/prelude_impl.py/shift/original