上一页 1 ··· 210 211 212 213 214 215 216 217 218 ··· 498 下一页
摘要: 举个例子: “把这份报告复印一下”。 5W2H Who: 小张 What:复印报告 How: 用高品质复印 When:下班前 Where: 总经理办公室 How many:2份 Why:给客户做参考 整理后: “请你将这份报告复印2份,在下班前送到总经理办公室交给总经理。请留意复印的质量,总经理要带 阅读全文
posted @ 2020-03-16 03:51 Zhentiw 阅读(1270) 评论(0) 推荐(0)
摘要: // Definition const Endo = run => ({ run, concat: other => Endo(x => other.run(run(x))) }); Endo.empty = () => Endo(x => x); // Ex1: // const classToC 阅读全文
posted @ 2020-03-15 21:12 Zhentiw 阅读(230) 评论(0) 推荐(0)
摘要: Normally when we use 'map', we do the transform base on the output. 'contramap' can do the transform base on the input, which means, before the orgina 阅读全文
posted @ 2020-03-15 21:11 Zhentiw 阅读(174) 评论(0) 推荐(0)
摘要: Endo: It takes a type as string and output is the same type. It's concat methods works like composion. All the transform functions on the same input. 阅读全文
posted @ 2020-03-15 18:10 Zhentiw 阅读(149) 评论(0) 推荐(0)
摘要: There are two types of Loading events: DOMContentLoaded Loaded DOMEContentLoaded: It happens after index.html has been parsed. <!DOCTYPE html> <html> 阅读全文
posted @ 2020-03-15 02:57 Zhentiw 阅读(164) 评论(0) 推荐(0)
摘要: const Reader = run => ({ run, map: f => Reader(x => f(run(x))), chain: f => Reader(x => f(run(x)).run(x)), concat(o) { return Reader(x => run(x).conca 阅读全文
posted @ 2020-03-14 05:07 Zhentiw 阅读(154) 评论(0) 推荐(0)
摘要: Let's say we have App.component.ts, it use provider inside component level: @Component({ selector: 'app-root', templateUrl: './app.component.html', st 阅读全文
posted @ 2020-03-14 04:37 Zhentiw 阅读(165) 评论(0) 推荐(0)
摘要: Rules Each page should have at least one <h1> Pages should be structured in a hierarchical manner <h1>: being the most important (usually page titles 阅读全文
posted @ 2020-03-13 16:28 Zhentiw 阅读(120) 评论(0) 推荐(0)
摘要: Reader Monad Continue with previous post, here we have some helper functions: const toUpper = s => s.toUpperCase(); const exclaim = s => `${s}!`; And 阅读全文
posted @ 2020-03-13 04:10 Zhentiw 阅读(234) 评论(0) 推荐(0)
摘要: Let's say we have two fucntions: const toUpper = s => s.toUpperCase(); const exclaim = s => `${s}!`; We want to combine those. But function itself doe 阅读全文
posted @ 2020-03-13 03:39 Zhentiw 阅读(151) 评论(0) 推荐(0)
上一页 1 ··· 210 211 212 213 214 215 216 217 218 ··· 498 下一页