Skip to content

Instantly share code, notes, and snippets.

View neilgall's full-sized avatar

Neil Gall neilgall

View GitHub Profile

Keybase proof

I hereby claim:

  • I am neilgall on github.
  • I am neilgall (https://keybase.io/neilgall) on keybase.
  • I have a public key ASDHaoBksM5JJbWR3OgidECsw8LNl2OEbYuExNBdJhtjQQo

To claim this, I am signing this object:

@neilgall
neilgall / fizzbuzz.js
Created January 16, 2017 22:24
Lambda Calculus Fizzbuzz (in Javascript)
// Integers
const ZERO = p => a => a
const INCREMENT = n => p => x => p(n(p)(x))
const ONE = INCREMENT(ZERO)
const TWO = INCREMENT(ONE)
const THREE = INCREMENT(TWO)
const FOUR = INCREMENT(THREE)
const FIVE = INCREMENT(FOUR)