Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
norswap
on July 20, 2013
|
parent
|
context
|
favorite
| on:
Reading the Ruby Source to Understand Rails Idiosy...
Ranges are always continuous, but `cover?` uses the comparison operators, while `include?` iterates over the items in the range in some cases. `include?` is practical in cases where you don't want to implement the comparison operators.
See
https://news.ycombinator.com/item?id=6076608
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
See https://news.ycombinator.com/item?id=6076608