mostly-adequate-guide-chinese icon indicating copy to clipboard operation
mostly-adequate-guide-chinese copied to clipboard

函数式编程指南中文版

Results 8 mostly-adequate-guide-chinese issues
Sort by recently updated
recently updated
newest added

get value from querySelector

``` ... ... // 前面的例子中我们必须要写两个组合才行,但既然组合是符合结合律的,我们就可以只写一个, // 而且想传给它多少个函数就传给它多少个,然后让它自己决定如何分组。 var lastUpper = compose(toUpperCase, head, reverse); lastUpper(['jumpkick', 'roundhouse', 'uppercut']); //=> 'UPPERCUT' ``` 在上述代码中,我个人计算的和控制台输出的答案都是"JUMPKICK"。还望作者确认一下,不知道到底是我搞错了还是您大意了、

``` ////// 纯代码库: lib/params.js /////// // url :: IO String var url = new IO(function() { return window.location.href; }); // toPairs = String -> [[String]] var toPairs = compose(map(split('=')), split('&'));...

代码需要更新了。

可以把练习加上来

1. 已经google过,除本文之外没有自由定理的解释 2. 文中提到 [Wadler 关于此主题的论文](http://ttic.uchicago.edu/~dreyer/course/papers/wadler.pdf) > 论文标题:theorems for free > 摘要:From the type of a polymorphic function we can derive a theorem that it satisfies. Every Function of the...