3 ms·
> output = pipe(input)[transform1, transform2, tranform3] This one seems abusive, I'm not much of a Python user, but it looks like it's overloading indexing wi
by chris_7 10y ago
> output = pipe(input)[transform1, transform2, tranform3]
This one seems abusive, I'm not much of a Python user, but it looks like it's overloading indexing with a sequence (tuple) of functions to perform composition?
The other one seems like the correct way to handle this, I don't understand why it wasn't mentioned in the original post.