上一页 1 ··· 169 170 171 172 173 174 175 176 177 ··· 494 下一页
摘要: In this lesson, we explore how you can use CSS variables almost like Boolean values in combination with calc(). By setting a variable to 1 or 0 and th 阅读全文
posted @ 2020-10-26 21:29 Zhentiw 阅读(135) 评论(0) 推荐(0)
摘要: val randomNumber = Random().nextInt(3) if (randomNumber is BigDecimal) { result = result.add(BigDecimal(36)) } If you use type check, then 'result' is 阅读全文
posted @ 2020-10-26 18:36 Zhentiw 阅读(69) 评论(0) 推荐(0)
摘要: Let's see following code: println(colors.reduce { acc, curr -> "$acc, $curr" }) // red, blue, green, black val myMap = mapOf(1 to "one", 2 to "two", 3 阅读全文
posted @ 2020-10-26 16:22 Zhentiw 阅读(115) 评论(0) 推荐(0)
摘要: 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 阅读(211) 评论(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 阅读(142) 评论(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 阅读(107) 评论(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 阅读(164) 评论(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 阅读(96) 评论(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 阅读(128) 评论(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 阅读(120) 评论(0) 推荐(0)
上一页 1 ··· 169 170 171 172 173 174 175 176 177 ··· 494 下一页