def apply_func_to_list(func):
    return lambda l,*args: [func(x,*args) for x in l]
return a function that applies func to a list
dataset/ETHPy150Open Microsoft/ivy/src/ivy/ivy_utils.py/apply_func_to_list