0
FPS fxn help... decorators?
I’m trying to build a simple function to pipeline several functions for a single input. Can’t figure out why this won’t work. Plz help ya boi. Idea is to make pipeline(x) == Step3(step2(step1(x))) https://code.sololearn.com/cet2AuHXYJJF/?ref=app
2 ответов
+ 2
I dont see calls to functions in pipeliner func.
Anyway, if i have understood, i think that is more simple do something like:
def pipeliner(*fxns):
def a(x):
for f in fxns:
x= f(x)
return x
return a
0
YES thank you!!!