未验证 提交 10b3e6af 编写于 作者: A Adrian Baran 提交者: GitHub

Fix compose type signature

上级 9ff2ffff
......@@ -20,7 +20,7 @@ const always = curry((a, b) => a);
## compose
```js
// compose :: ((a -> b), (b -> c), ..., (y -> z)) -> a -> z
// compose :: ((y -> z), (x -> y), ..., (a -> b)) -> a -> z
const compose = (...fns) => (...args) => fns.reduceRight((res, fn) => [fn.call(null, ...res)], args)[0];
```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册