Skip to content

Instantly share code, notes, and snippets.

@dfreeman
dfreeman / list-out-of-lambda.js
Last active February 23, 2017 17:26 — forked from sjl/list-out-of-lambda.js
Took the (native-)Boolean-free challenge. Approach shamelessly lifted from the λ-calculus, of course, but still a good exercise.
/************************************
* List Stuff *
************************************/
var empty_list = function(selector) {
return selector(undefined, undefined, tru);
};
var prepend = function(el, list) {
return function(selector) {