Our great sponsors
-
pymonad
PyMonad implements data structures typically available in pure functional or functional first programming languages like Haskell and F#. Included are Monad and Monoid data types with several common monads included - such as Maybe and State - as well as some useful tools such as the @curry decorator for defining curried functions. PyMonad 2.x.x represents an almost complete re-write of the library with a simpler, more consistent interface as well as type annotations to help ensure correct usage.
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
Thanks for sharing this; it seems like a solid and gentle introduction to monadic programming. Do you always roll your own monads, or is there a package you'd recommend? I see that there's PyMonad, but I don't know enough to compare different packages.
returns from the DRY python group appears to offer similar functionality.
Related posts
- Python Functional Programming with returns library (type-safety, monads, etc.)
- GitHub - dry-python/returns: Make your functions return something meaningful, typed, and safe!
- [Media] Rust Results in Python :D
- Show HN: Koda, a Typesafe Functional Toolkit for Python
- Python/Pandas equivalent of CTE in SQL?