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

23rd Dec 2018, 7:59 AM
Charles Martin
Charles Martin - avatar
2 Respuestas
+ 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
23rd Dec 2018, 8:21 AM
KrOW
KrOW - avatar
0
YES thank you!!!
26th Dec 2018, 1:30 AM
Charles Martin
Charles Martin - avatar