@sig(int/ H >> "a" >> ["a"])
def replicate(n, x):
    """
    replicate :: Int -> a -> [a]

    replicate(n, x) is a list of length n with x the value of every element.
    """
    def __replicate(n, x):
        for _ in range(n):
            yield x
    return L[__replicate(n, x)]
dataset/ETHPy150Open billpmurphy/hask/hask/Data/List.py/replicate/swapped operands of `/`