摘要: 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 阅读(280) 评论(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 阅读(436) 评论(0) 推荐(0) 编辑
摘要: Each row and each column are already SORTED in the given matrix! 阅读全文
posted @ 2019-02-24 20:56 Zhentiw 阅读(147) 评论(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 阅读(700) 评论(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 阅读(434) 评论(0) 推荐(0) 编辑