- Kotlin Standard Library Cookbook
- Samuel Urbanowicz
- 74字
- 2021-07-23 19:05:48
How to do it...
- Declare a range of the Char type using the downTo() function:
'z' downTo 'a'
- Convert the range to a progression with a custom step value using the step() function:
'z' downTo 'a' step 2
- Use the forEach() function to iterate through the elements of the progression and print each of them to the console:
('z' downTo 'a' step 2).forEach { character -> print(character) }
推薦閱讀
- Mastering NetBeans
- Android項目開發入門教程
- Vue.js前端開發基礎與項目實戰
- Flink SQL與DataStream入門、進階與實戰
- Blender 3D Incredible Machines
- 秒懂設計模式
- Oracle BAM 11gR1 Handbook
- 零基礎學Python網絡爬蟲案例實戰全流程詳解(入門與提高篇)
- MySQL程序員面試筆試寶典
- Troubleshooting Citrix XenApp?
- ASP.NET求職寶典
- PHP 8從入門到精通(視頻教學版)
- INSTANT Premium Drupal Themes
- Java程序設計教程
- Ubuntu Server Cookbook