- Kotlin Standard Library Cookbook
- Samuel Urbanowicz
- 81字
- 2021-07-23 19:05:48
Building custom progressions to traverse dates
Kotlin provides built-in support for ranges of primitive types. In the previous recipes, we worked with the IntRange and CharRange types, which are included in the Kotlin standard library. However, it is possible to implement a custom progression for any type by implementing the Comparable interface. In this recipe, we will learn how to create a progression of the LocalDate type and discover how to traverse the dates the easy way.
推薦閱讀
- Web應用系統開發實踐(C#)
- Python科學計算(第2版)
- Python編程完全入門教程
- Visual C
- 運用后端技術處理業務邏輯(藍橋杯軟件大賽培訓教材-Java方向)
- Angular開發入門與實戰
- Getting Started with LLVM Core Libraries
- The Professional ScrumMaster’s Handbook
- Mastering C++ Multithreading
- 數據科學中的實用統計學(第2版)
- UML基礎與Rose建模實用教程(第三版)
- HTML并不簡單:Web前端開發精進秘籍
- C#程序開發參考手冊
- Python編程:從入門到實踐(第2版)
- Java Web開發任務教程