λii SDK Documentation
Comprehensive documentation to help you master functional programming with our high-performance λ-calculus engine. Explore the foundation concepts and advanced features.
🚀 Getting Started
Installation
yarn add lambda-ii
The SDK requires Node.js 18+ and a compatible λ-calculus compiler. Install using your preferred package manager.
Quick Example
const factorial = Lambda.create(n =>
n === 0 ? 1 : n * factorial(n - 1)
);
factorial(5) // → 120
This simple factorial implementation demonstrates the elegance of λii's approach to recursion and type inference.
🧠 Core Concepts
Immutability by Design
All λii functions produce new data structures rather than modifying existing ones, enabling pure functional transformation at scale.
Tail Recursion Optimization
The compiler automatically transforms recursive patterns into efficient, stack-safe iterative processes.
📚 API Reference
create()
Factory function to create λii functional objects with type safety and execution optimization.
-
definition
(Function): The core implementation logic-
options
(Object, optional): Type hints and execution parameters
compose()
High-order function that combines multiple λii functions into a pipeline with automatic type validation.
-
...fns
(Function[]): Functions to be composed in sequence
Need More Help?
Check out our interactive playground, watch community tutorials, or join the developer forum for live support.