python from funcy import partial def add(a, b): return a + b add_five = partial(add, 5) python from funcy import compose def add_one(x): return x + 1 def square(x): return x ** 2 pipeline = compose(add_one, square) python from funcy import rcompose, auto_curry @auto_curry def power(x, y): return x ** y def double(x): return x * 2 pipeline = rcompose(double, power(3))


上一篇:
下一篇:
切换中文