官术网_书友最值得收藏!

Using range expressions with flow control statements

Apart from iterations, Kotlin range expressions can be useful when it comes to working with flow control statements. In this recipe, we are going to learn how to use range expressions together with if and when statements in order to tune up the code and make it safe. In this recipe, we are going to consider an example of using the in operator to define a condition of an if statement.

主站蜘蛛池模板: 临澧县| 香港 | 浑源县| 定兴县| 贡觉县| 昌邑市| 德保县| 穆棱市| 自贡市| 临朐县| 昌都县| 登封市| 神木县| 合作市| 兴义市| 延寿县| 镇康县| 安远县| 尉犁县| 屏山县| 什邡市| 铅山县| 喀喇沁旗| 梅河口市| 龙岩市| 石屏县| 安达市| 绥阳县| 社旗县| 垦利县| 丰镇市| 双鸭山市| 平遥县| 鞍山市| 关岭| 曲阳县| 织金县| 铜山县| 嘉祥县| 临泽县| 巫溪县|