function composition python

29

def compose2(f, g):
    return lambda x: f(g(x))

Comments

Submit
0 Comments