Khan / Khan/mu-lambda

add Maybe monad, mcompose, and makeSafe

Open
#6 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
26
Forks
4
PR merge metrics
No merged PRs in 30d

Description

The goal is to provide a way to safely compose functions without having to worry about any one of the failing.
```
// makeSafe :: fn -> * -> Maybe
makeSafe = (fn) => curryN(fn.length, (...args) => Maybe.of(fn(...args)));
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the public entry point for the JavaScript utilities and the existing composition conventions. Use the issue's Maybe, mcompose, and makeSafe names as the scope, then verify safe composition and failure-handling behavior before considering the feature complete.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.