pytoolz / toolz

A functional standard library for Python.
http://toolz.readthedocs.org/
Other
4.57k stars 258 forks source link

thread_as function #541

Open gkspranger opened 1 year ago

gkspranger commented 1 year ago

as mentioned here :: https://github.com/pytoolz/toolz/issues/540

inspired by clojure's (as->) macro .. allows one to thread a value by name, and subsequent resulting values, thru following functions that may require varying positional arguments .. hopefully, will reduce boilerplate around partials, lambdas, and allow for more robust threading capabilities ..

thanks for looking !!

yellowbean commented 4 months ago

It's quite useful ! May I have a clue when it will be merged into master ? @eriknw