# curry

函数柯里化

import { curry } from '@hui-pro/utils';

const foo = (a, b, c) => [a, b, c];
const _ = curry._;
const curriedFoo = curry(foo, arity);
curriedFoo(1)(2)(3); // => [1, 2, 3]
curriedFoo(1)(_, 2)(3); // => [1, 3, 2]
const uncurriedFoo = curry.uncurry(curriedFoo);
uncurriedFoo(1); // => [1, undefined, undefined]

# API

参数 说明 类型 默认值 可选值
curry._ 柯里化占位符 Symbol - -
curry.uncurry 反柯里化 Function - -