Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 392 Bytes

README.markdown

File metadata and controls

16 lines (11 loc) · 392 Bytes

fj-yc

Build Status npm version

The Applicative Order Y Combinator.

Installation

npm install fj-yc --save

Usage

var YC = require('fj-yc');
let fact = YC((fac) => (n) => n <= 2 ? n : n * fac(n - 1));
fact(5) // 120;