How to create a function that applies a function to the inputs of another function in Python?

后端 未结 0 1804
醉话见心
醉话见心 2020-12-11 06:29

I\'m looking for a nice functional way to do the following:

def add(x, y):
    return x + y

def neg(x):
    return -x

def c(x, y):
    # Apply neg to inputs         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题