4 ms·
Could you get a similar effect by wrapping your data in a decorator that has those methods? Then you just turn your transformation functions into methods that w
by Cpoll 10y ago
Could you get a similar effect by wrapping your data in a decorator that has those methods? Then you just turn your transformation functions into methods that work on the decorator.
```
data = transformable(data)
data.some_transformation()
.another_transformation()
.last_transformation()
```
Not ideal, of course.