- Kotlin Standard Library Cookbook
- Samuel Urbanowicz
- 83字
- 2021-07-23 19:05:49
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.
推薦閱讀
- Learn ECMAScript(Second Edition)
- Developing Mobile Web ArcGIS Applications
- ASP.NET Core Essentials
- Linux命令行與shell腳本編程大全(第4版)
- C#程序設計
- C語言程序設計同步訓練與上機指導(第三版)
- C語言程序設計
- Java EE企業級應用開發教程(Spring+Spring MVC+MyBatis)
- Django 3.0入門與實踐
- Spring技術內幕:深入解析Spring架構與設計原理(第2版)
- MyBatis 3源碼深度解析
- Elasticsearch搜索引擎構建入門與實戰
- 微信公眾平臺開發最佳實踐
- Java EE框架開發技術與案例教程
- MATLAB語言及編程實踐:生物數學模型應用