@sig(H/ (H/ "a" >> "a" >> "b") >> "b" >> ["a"] >> ["b"])
def scanr(f, z, xs):
    """
    scanr :: (a -> b -> b) -> b -> [a] -> [b]

    scanr is the right-to-left dual of scanl.
    """
    raise NotImplementedError()
dataset/ETHPy150Open billpmurphy/hask/hask/Data/List.py/scanr/original