上一页 1 ··· 175 176 177 178 179 180 181 182 183 ··· 477 下一页
摘要: In kotlin, "fold" is same in Javascript's reduce. "fold" has initial value "reduce" in kotlin, you don't give initial value val colors = listOf("red", 阅读全文
posted @ 2020-10-26 16:14 Zhentiw 阅读(222) 评论(0) 推荐(0)
摘要: import { curry, compose, toUpper, pipe } from 'ramda'; // #region listeners const _log = (value) => console.log(value); // #endregion // #region broad 阅读全文
posted @ 2020-10-25 22:11 Zhentiw 阅读(169) 评论(0) 推荐(0)
摘要: Buffers give you chance to gather values together until your ready to work with them. This pattern can be used for calculations, string manipulations, 阅读全文
posted @ 2020-10-25 22:10 Zhentiw 阅读(131) 评论(0) 推荐(0)
摘要: In our previous code, we have seen this partten for operators: // #region operators const concat = curry((broadcaster, listener) => { let string = ''; 阅读全文
posted @ 2020-10-25 21:54 Zhentiw 阅读(181) 评论(0) 推荐(0)
摘要: If you can think ahead to how you want your code to look into the future, then you can tackle your problems from the inside out. You design how you wa 阅读全文
posted @ 2020-10-25 21:18 Zhentiw 阅读(106) 评论(0) 推荐(0)
摘要: import { curry } from 'ramda'; // #region listeners const _log = (value) => console.log(value); // #endregion // #region broadcasters const done = Sym 阅读全文
posted @ 2020-10-25 17:45 Zhentiw 阅读(154) 评论(0) 推荐(0)
摘要: All good things come to an end. The concept of "done" plays a large part in our pattern and asynchronous code in general. We have to be able to handle 阅读全文
posted @ 2020-10-24 19:39 Zhentiw 阅读(144) 评论(0) 推荐(0)
摘要: The patterns we've established can also work well with plain old Objects and Arrays. We just have to capture the behavior of accessing those values in 阅读全文
posted @ 2020-10-24 15:49 Zhentiw 阅读(112) 评论(0) 推荐(0)
摘要: Functions returning functions returning functions can begin to look a bit unwieldy. The arrow function has helped the syntax a lot, but maybe using a 阅读全文
posted @ 2020-10-24 15:43 Zhentiw 阅读(136) 评论(0) 推荐(0)
摘要: Functions returning functions returning functions can begin to look a bit unwieldy. The arrow function has helped the syntax a lot, but maybe using a 阅读全文
posted @ 2020-10-24 15:35 Zhentiw 阅读(159) 评论(0) 推荐(0)
上一页 1 ··· 175 176 177 178 179 180 181 182 183 ··· 477 下一页