- Mastering Elixir
- André Albuquerque Daniel Caixinha
- 59字
- 2021-08-05 10:42:46
Ranges
Ranges, again, similar to what happens in Ruby, represent an interval between two integers. To create a range, we use this:
iex> 17..21
17..21
iex> 19 in 17..21
true
Similar to what we do with a list, we can use the in operator to check whether a number is between the start and the end of a range.
推薦閱讀
- Learning ROS for Robotics Programming(Second Edition)
- C語言程序設計基礎與實驗指導
- PyTorch Artificial Intelligence Fundamentals
- Web全棧工程師的自我修養
- SQL Server 2016數據庫應用與開發習題解答與上機指導
- Java 11 Cookbook
- Jupyter數據科學實戰
- D3.js By Example
- 網絡數據采集技術:Java網絡爬蟲實戰
- SSH框架企業級應用實戰
- Maven for Eclipse
- Google Maps JavaScript API Cookbook
- The Applied Data Science Workshop
- 信息學奧林匹克競賽初賽精講精練
- Node.js核心技術教程