- Kotlin Standard Library Cookbook
- Samuel Urbanowicz
- 124字
- 2021-07-23 19:05:47
See also
- This recipe gave us an insight into how Kotlin standard library implementations of ranges for primitives are easy to work with. A problem can appear if we want to traverse non-primitive types using the for loop. However, it turns out we can easily declare a range for any Comparable type. This will be shown in the Building custom progressions to traverse dates recipe.
- As you have noticed, we are using the in operator to specify the object that is being iterated in the loop. However, there are also other scenarios where the in and !in operators can be used together with ranges. We will investigate them in depth in the Using range expressions with flow control statements recipe.
推薦閱讀
- 新編Visual Basic程序設計上機實驗教程
- Google Apps Script for Beginners
- Oracle WebLogic Server 12c:First Look
- Delphi程序設計基礎:教程、實驗、習題
- 微服務與事件驅動架構
- Python for Secret Agents:Volume II
- Mastering SVG
- MATLAB 2020 從入門到精通
- NativeScript for Angular Mobile Development
- Practical DevOps
- Oracle BAM 11gR1 Handbook
- 琢石成器:Windows環境下32位匯編語言程序設計
- Qlik Sense? Cookbook
- Advanced UFT 12 for Test Engineers Cookbook
- Scala編程實戰