Last Updated: February 25, 2016
·
797
· apneadiving

Ruby Ranges

Use:

Range#cover?

instead of:

Range#include?

cover? uses logic where #include? requires creation of all data in Range