λii Developer Playground
Experiment with λ-calculus powered functions in real-time. Write, run, and visualize your functional programs instantly.
λ-editor.ii
λ-output.ii
λii Interpreter:
Ready for your code →
Try These Examples
Factorial
import { Lambda } from 'lambda-ii'; const factorial = Lambda.create(n => n === 0 ? 1 : n * factorial(n - 1));
List Mapper
const map = Lambda.create((f, xs) => xs.length === 0 ? [] : [f(xs[0])].concat(map(f, xs.slice(1))));
Combinators
const Y = f => (x => x(x))( y => f(z => y(y)(z)));