declarative-demos
An attempt to solve programming puzzles in a declarative way.
This repo consists of common algorithmic problems solved in a declarative way. I will keep on adding examples as and when I solve them.
It uses a Ramda as a helper library and the ideas have been derived from Prof Frisby's Mostly Adequate Guide to Functional Programming as well as Kevlin Henney's amazing talk on Declarative Thinking.
How to run
git clone https://github.com/dbagia/declarative-demos.git
yarn
yarn test
Documentation
Each folder under demos has got it's own README explaining the problem, declarative approach and implementation as well as tests.