摘要: We examine the data structure Task, see some constructors, familiar methods, and finally how it captures side effects through laziness. We are going t 阅读全文
posted @ 2019-02-26 18:34 Zhentiw 阅读(253) 评论(0) 推荐(0)
摘要: We rewrite the Box example using lazy evaulation. Here is Box example: So how to make it as Lazy Box? The Answer is instead of passing a value to the 阅读全文
posted @ 2019-02-26 18:11 Zhentiw 阅读(350) 评论(0) 推荐(0)
摘要: Previously we have seen how to use Concat with reduce: To simply this, we can use 'fold': Javascript arrray doesn't have 'fold' so we use immutable-ex 阅读全文
posted @ 2019-02-26 18:05 Zhentiw 阅读(200) 评论(0) 推荐(0)