UNPKG

crocks

Version:

A collection of well known Algebraic Datatypes for your utter enjoyment.

17 lines (12 loc) 399 B
/** @license ISC License (c) copyright 2016 original and current authors */ /** @author Ian Hofmann-Hicks (evil) */ var _curry = require('../core/curry') var isFunction = require('../core/isFunction') // curry : ((a, b, c) -> d) -> a -> b -> c -> d function curry(fn) { if(!isFunction(fn)) { throw new TypeError('curry: Function required') } return _curry(fn) } module.exports = curry