Question:
I have some ranges defined:Enumerable#find
with Range#cover?
to pick the matching range definition. The find
method returns an array including both, key and value. The chained first
call then picks the key from the array which will be the requested range identifier.If you have better answer, please add a comment about this, thank you!