上一页 1 ··· 269 270 271 272 273 274 275 276 277 ··· 477 下一页
摘要: 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 阅读(277) 评论(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 阅读(370) 评论(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 阅读(228) 评论(0) 推荐(0)
摘要: What is applicative functor: the ability to apply functors to each other. For example we have tow functors: Container(2), Container(3) We cannot just 阅读全文
posted @ 2019-02-25 19:12 Zhentiw 阅读(249) 评论(0) 推荐(0)
摘要: Got the idea form this lesson. Not sure whether it is the ncessary, no othere better way to handle it. Have a TodoList component, every time types in 阅读全文
posted @ 2019-02-25 17:30 Zhentiw 阅读(701) 评论(0) 推荐(0)
摘要: monoids is a semi-group with a neutral element. A semigroup, it does not have an element to return so it's not a safe operation, whereas with the mono 阅读全文
posted @ 2019-02-24 21:18 Zhentiw 阅读(299) 评论(0) 推荐(0)
摘要: Before we introduce what is Monad, first let's recap what is a pointed functor: A pointed functor is a Functor with .of() method Why pointed Functor i 阅读全文
posted @ 2019-02-24 21:11 Zhentiw 阅读(472) 评论(0) 推荐(0)
摘要: Each row and each column are already SORTED in the given matrix! 阅读全文
posted @ 2019-02-24 20:56 Zhentiw 阅读(181) 评论(0) 推荐(0)
摘要: In this post, we are going to see how to use Ramda Lens. For example, we have data: R.lens: R.lens takes a getter and a setter: R.lensProp: There is a 阅读全文
posted @ 2019-02-24 20:12 Zhentiw 阅读(746) 评论(0) 推荐(0)
摘要: As an alternate to useState, you could also use the useReducer hook that provides state and a dispatch method for triggering actions. In this lesson, 阅读全文
posted @ 2019-02-24 17:28 Zhentiw 阅读(471) 评论(0) 推荐(0)
上一页 1 ··· 269 270 271 272 273 274 275 276 277 ··· 477 下一页