λιβι.λ - Lambda Library

Live Lambda Playground

Try functional programming examples directly in your browser with real-time type checking and evaluation.

What You Can Do

🚀

Real-Time Evaluation

Test lambda expressions immediately with instant feedback and reduction visualizations.

🛡️

Type Safety

The system automatically verifies types to prevent errors and ensure correct function compositions.

🔁

Interactive Examples

Modify and run example code snippets to immediately see how changes affect execution.

Start Your Session

Lambda Playground Workspace

Result:

Ready to evaluate your expressions...

Try These Examples

Basic Application
(λx. x * 2) 5

Simple function application example with numeric transformation.

Higher-Order
(λf. λx. f x) (λy. y + 1) 10

Function that takes and applies another function with argument transformation.

Y Combinator
(λf. (λx. f (x x)) (λx. f (x x)))

Classic recursion enabling combinator for unrestricted function recursion in lambda calculus.

Type Polymorphism
λx. x

Identity function with universal application across types.

Haskell Integration

Combine the power of Haskell type systems with λιβι.λ's evaluation sandbox using a secure FFI bridge.

{-# LANGUAGE JavaScriptFFI #-} data Expr = ... toLambda :: Expr -> String
📘 Learn More
-- Sample Haskell Bridge
import Bridge

main = do
  let expr = parse "λx. x + 1"
  result <- evaluate expr