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

How to do it...

  1. Declare a range of the Char type using the downTo() function:
'z' downTo 'a'
  1. Convert the range to a progression with a custom step value using the step() function:
'z' downTo 'a' step 2
  1. 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) }
主站蜘蛛池模板: 五莲县| 鞍山市| 离岛区| 鸡东县| 绍兴市| 永善县| 芷江| 抚顺市| 固阳县| 泰顺县| 丰台区| 乐山市| 集贤县| 攀枝花市| 新源县| 隆尧县| 商河县| 上虞市| 白沙| 吉林省| 定结县| 厦门市| 长武县| 黑龙江省| 麻江县| 高密市| 隆化县| 白朗县| 玉环县| 钦州市| 玉田县| 峡江县| 玛曲县| 霍邱县| 汝南县| 舟曲县| 西安市| 前郭尔| 张家口市| 宜昌市| 忻城县|