上一页 1 ··· 272 273 274 275 276 277 278 279 280 ··· 494 下一页
摘要: Javascript's Object.assign is shadow merge, loadsh's _.merge is deep merge, but has probem for array. We can use Ramda.js to easy solve the problem: T 阅读全文
posted @ 2019-01-18 21:04 Zhentiw 阅读(426) 评论(0) 推荐(0)
摘要: If you're a library author, it's useful to expose your public types as interfaces, to allow your consumers to extend them if needed. For example: To r 阅读全文
posted @ 2019-01-18 19:18 Zhentiw 阅读(202) 评论(0) 推荐(0)
摘要: Functor composition is a powerful concept that arises when we have one Functor nested in another Functor. It becomes even more powerful when both of t 阅读全文
posted @ 2019-01-18 17:52 Zhentiw 阅读(234) 评论(0) 推荐(0)
摘要: We want to be able to pick nine random cards from an array of twelve cards, but can run into problems of keeping both the cards already draw and the c 阅读全文
posted @ 2019-01-17 21:47 Zhentiw 阅读(197) 评论(0) 推荐(0)
摘要: Using the optional “+” sign together with mapped type modifiers, we can create more explicit and readable type declarations. We can also use the “-” ( 阅读全文
posted @ 2019-01-17 19:46 Zhentiw 阅读(311) 评论(0) 推荐(0)
摘要: JPA is just like a helper class for providing data for Controller, has method like 'findOne', 'findAll', 'saveAndFlush', 'delete'. in repository/Shipw 阅读全文
posted @ 2019-01-16 20:53 Zhentiw 阅读(427) 评论(0) 推荐(0)
摘要: Just like the State ADT an Array is also an Applicative Functor. That means we can do the same tricks with liftA2 with Array that we have been doing w 阅读全文
posted @ 2019-01-16 16:30 Zhentiw 阅读(720) 评论(0) 推荐(0)
摘要: Custom elements are fun technology. In this video, you will learn how to set one up and running in less than 2 minutes. You'll learn how to create a C 阅读全文
posted @ 2019-01-16 15:54 Zhentiw 阅读(181) 评论(0) 推荐(0)
摘要: In JavaScript, we often end up composing one object out of several other objects. Luckily there's a convenient spread operator which allows us to spre 阅读全文
posted @ 2019-01-16 15:45 Zhentiw 阅读(160) 评论(0) 推荐(0)
摘要: Sometimes we might want to make a function more generic by having it accept a union of different types as an argument. Using the JavaScript “in” opera 阅读全文
posted @ 2019-01-15 20:47 Zhentiw 阅读(204) 评论(0) 推荐(0)
上一页 1 ··· 272 273 274 275 276 277 278 279 280 ··· 494 下一页