Open tfenne opened 1 year ago
I would have think there's at least one python library out there providing a set of Practical For The Real World monadic types
If you hadn't already looked down this route, quick google search turned up a few things that all looked like they had an Either
(or equivalent):
So the questions are:
PyMonad: hasn't been touched in 2+years, logged issues are not responded to, isn't on ReadThDocs. Is on pip
but not conda.
typed-monads: has a Result type but no Either. No commits in a year. Not on ReadTheDocs...
OSlash: hasn't been touched in years. One of the top issues is "is this usable in real projects" and the author answers "yeah, not really, this is more of a tutorial", lol.
Would be nice to include functions that take lambdas too in order to make it easier to do map/foreach type operations if left or right is populated.