crocks
Version:
A collection of well known Algebraic Datatypes for your utter enjoyment.
12 lines (8 loc) • 305 B
JavaScript
/** @license ISC License (c) copyright 2016 original and current authors */
/** @author Ian Hofmann-Hicks (evil) */
var curry = require('../core/curry')
// Constant (Kestrel)
// constant : a -> b -> a
var constant =
function (x) { return function () { return x; }; }
module.exports = curry(constant)