{"library":"oslash","title":"OSlash","description":"A functional programming library providing Functors, Applicatives, and Monads for Python 3.12+. Current version 2.0.0, stable release with PEP 695 type parameters and strict type checking. Maintained on an irregular cadence by dbrattli.","language":"python","status":"active","last_verified":"Fri May 01","install":{"commands":["pip install oslash"],"cli":null},"imports":["from oslash import Maybe","from oslash import Either","from oslash import List"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"from oslash import Maybe, Just, Nothing\n\nresult = Just(42).map(lambda x: x * 2)\nprint(result)\n# Output: Just(84)\n\nresult2 = Nothing() >> (lambda x: Just(x * 2))\nprint(result2)\n# Output: Nothing()","lang":"python","description":"Basic usage of Maybe monad with map and bind (>>).","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}