Home > func

func

Func is a project mainly written in CoffeeScript, it's free.

Functional JavaScript programming

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.

Previous:dotfiles