Lambda Calculus is a kind of mathematical game when you're implementing programming language with only functions that accept exactly one argument and returns exactly one value. Such function named "lambda". Thing is lambda can return another lambda, and it allows you to build everything, even numbers.
This repository contains lambdas with implemented lambdas and tests with pytest-based tests for it. To run tests execute pytest
.
Implemented:
- Boolean operations: code, tests.
- Natural numbers: code, tests.
- Pair: code, tests.
- Combinators: code, tests.
- Recursive functions: code, tests.
- Signed numbers: code, tests.
- Lists: code, tests.
The list below is in order of the recommend implementation. It's recommend to try to do it by yourself, and use this repository as a cheatsheet.