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 Answers
+ 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!!!