Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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: