Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/thlorenz/func

Functional JavaScript programming
https://github.com/thlorenz/func

Last synced: 26 days ago
JSON representation

Functional JavaScript programming

Awesome Lists containing this project

README

        

# Experiments in writing functional JavaScript

## Installation

$ npm install func

## The Library func

This library is only there to enable the below experiments.

## The Examples

These should be of higher interest than the func library itself.

So far the following examples have been implemented

### Chess Game

This is an attempt to teach all chess pieces how to move around the chess board without
breaking the rules.

Only the simplest move functions form the basis and are composed in order to express all
possible move in a very declarative manner.

The idea is that the correctness of the implementation can be reasoned about,
assuming the very simple basis functions are correct.