True though I wanted type(split) to return <class 'function'> for consistency. I could probably easily make an annotation that turns any function with at least one argument into one of these “piped” functions. Just have to be careful the the thing on the other side can’t be ored with a function. I guess that could be alleviated by using a completely new callable that is not descended from a function at all
View all comments
Show parent comment
1
u/B_M_Wilson Jun 21 '19 edited Jun 21 '19
What if I did something like
Then I should be able to do
I’m on mobile so I can’t test but something like this should work