dry-python / returns

Make your functions return something meaningful, typed, and safe!
https://returns.rtfd.io
BSD 2-Clause "Simplified" License
3.59k stars 119 forks source link

feature: bind, map, applicative operators #1266

Closed majidaldo closed 2 years ago

majidaldo commented 2 years ago

(did i see this mentioned feature somewhere?)

Python offers pipe , rshift, and matmul that could be used.

sobolevn commented 2 years ago

No, sorry. This is a documented decision. user.map(function) is much easier to read than user >> function.

You can write your own containers using our hkt feature with any operators you like.