@sig((H/ "a" >> bool)/ H >> ["a"] >> t(Maybe, int))
def findIndex(f, xs):
    """
    findIndex :: (a -> Bool) -> [a] -> Maybe Int

    The findIndex function takes a predicate and a list and returns the index
    of the first element in the list satisfying the predicate, or Nothing if
    there is no such element.
    """
    for i, x in enumerate(xs):
        if f(x):
            return Just(i)
    return Nothing
dataset/ETHPy150Open billpmurphy/hask/hask/Data/List.py/findIndex/swapped operands of `/`