Jichao Ouyang
Jichao Ouyang
不会有冲突,我merge后还修改了一些,可能你pull request前要pull下代码 On Jul 22, 2014 11:04 PM, "Scott" [email protected] wrote: > 另外,我看到你已经开始merge第一章了。我想问问,你对request的merge和我之后的push会有冲突吗? > > — > Reply to this email directly or view it on GitHub > https://github.com/jcouyang/functional-javascript/issues/5#issuecomment-49751471 >...
在这里对于绑 alias确实没什么区别,因为 Function 也是 Object,但是function 能干更多的事情,但就这个例子确实是效果一样的。
=>左边是类型定义,说明 a 表示 Ord 类型, 右边表示接受一个 a 类型 再接受一个 a 类型,返回一个 a 类型。
1. underscore 的这种写法之所以不是函数式,是因为每次比如`_(list).filter(selectSomething)`其实返回的是一个封装好 context 的 underscore 对象,其实就是中间对象或者容器。看到下一章 monad 的话其实就可以把他理解为 monad,但是本章是讲函数组合,所以我不认为一个返回对象的方法是函数,因此这些方法的串联也不是函数组合。真正的函数组合永远是 a(b(c(d)))这种形式的,当然更可读的方式是`compose(a,b,c)(d)`(所以lisp 这么多括号:scream:). > 我不是很懂 **声明式** 是什么 1. 推后是顺带获得的好处,但目的不是推后,真正的用意是配置好的这个函数可以组合到其他函数中,具体就是第三问有什么不一样,当然也是响应2.3为什么要柯里化。 这里的 scala 我不是很懂但是类似于 haskell 的 list,我都理解为 monad 活着 functor。monad跟函数组合也没有关系,只是应用一些函数到一个容器里而已,它并不会返回函数的组合。 2. groupedTasks 是个数组的数组(文中的“包含几组...
Yes it is intended. An Owlet is actually a bifunctor, but you can only map on the right value(signal), left (node) map is always identity, so the actual value of...
Boolean works because whether tick or untick the box it emit the same type. I'm not sure what Owlet[Either[A, B]] can be represented in the sense of web component? What...
If i understand correctly, for user error, you can always map over an owlet and covert it to either E.g. if you consider numbers less than 0 is error ```...
currently the design of owler DOM is just to map web components to owlet components