Thanks for the submission! The GitHub repository might be more interesting:<p><a href="https://github.com/pufuwozu/bilby.js" rel="nofollow">https://github.com/pufuwozu/bilby.js</a><p>The syntax examples show off a bit of everything:<p>Monads:<p><pre><code> λ.Do()(
λ.some(1) >= function(x) {
return x < 0 ? λ.none : λ.some(x + 2);
}
).getOrElse(0) == 3;
</code></pre>
Kleislis:<p><pre><code> λ.Do()(
function(x) {
return x < 0 ? λ.none : λ.some(x + 1);
} >> function(x) {
return x % 2 != 0 ? λ.none : λ.some(x + 1);
}
)(1).getOrElse(0) == 3;
</code></pre>
Functors:<p><pre><code> λ.Do()(
λ.some(1) < add(2)
).getOrElse(0) == 3;
</code></pre>
Applicatives:<p><pre><code> λ.Do()(
λ.some(add) * λ.some(1) * λ.some(2)
).getOrElse(0) == 3;
</code></pre>
Semigroups:<p><pre><code> λ.Do()(
λ.some(1) + λ.some(2)
).getOrElse(0) == 3;</code></pre>