This repository contains all the code samples of my Medium article Functional Programming with Non-Functional Languages. It demonstrates the implementation of constructs known from functional languages in non-functional languages, namely
- C++ (borrowing, lambda)
- Go (closure, currying)
- Java (1st class function, algebraic data type, lambda, closure, lazy evaluation)
- JavaScript (lambda, closure, currying, lazy evaluation)
- Kotlin (lambda, closure, currying)
- Python (closure)
- Rust (borrowing, closure, currying)
For reference, there are also implementations with