- 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.
推薦閱讀
- 黑客攻防從入門到精通(實戰秘笈版)
- Spring Cloud Alibaba核心技術與實戰案例
- OpenNI Cookbook
- Mastering Ubuntu Server
- 基于差分進化的優化方法及應用
- Python高效開發實戰:Django、Tornado、Flask、Twisted(第3版)
- SQL基礎教程(視頻教學版)
- QGIS By Example
- R語言與網絡輿情處理
- 微服務從小白到專家:Spring Cloud和Kubernetes實戰
- SQL Server實用教程(SQL Server 2008版)
- Kubernetes源碼剖析
- 算法圖解
- Learning iOS Penetration Testing
- Implementing Domain:Specific Languages with Xtext and Xtend