Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thlorenz/func
Functional JavaScript programming
https://github.com/thlorenz/func
Last synced: 26 days ago
JSON representation
Functional JavaScript programming
- Host: GitHub
- URL: https://github.com/thlorenz/func
- Owner: thlorenz
- Created: 2011-10-27T04:47:15.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2011-11-02T02:48:14.000Z (about 13 years ago)
- Last Synced: 2024-10-23T06:12:51.211Z (2 months ago)
- Language: CoffeeScript
- Homepage:
- Size: 114 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.