https://github.com/umesh-timalsina/ts-monads
Monads Playground in TypeScript
https://github.com/umesh-timalsina/ts-monads
functional-programming typescript
Last synced: 8 months ago
JSON representation
Monads Playground in TypeScript
- Host: GitHub
- URL: https://github.com/umesh-timalsina/ts-monads
- Owner: umesh-timalsina
- Created: 2022-10-11T14:37:19.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-08-27T15:57:31.000Z (about 1 year ago)
- Last Synced: 2025-01-28T04:45:54.845Z (10 months ago)
- Topics: functional-programming, typescript
- Language: TypeScript
- Homepage:
- Size: 75.2 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://github.com/umesh-timalsina/ts-monads/actions/workflows/CI.yml)
# ts-monads
Playing with [`monads`](https://en.wikipedia.org/wiki/Monad_(functional_programming)) in typescript.
## Current Implementations
- [`Result`](./lib/Result.ts) : Result Object Inspired from initial implementation by @brollb, [here](https://github.com/deepforge-dev/webgme-json-importer/blob/1c3622381d751f61e8d51874cd6189438b1b2ac4/lib/common/JSONImporter/Utils.ts#L98-L132)
- [`MayBe`](./lib/Maybe.ts): Optional Type wrapper with null