3 ms·
Been a while since I’ve used any Ruby but isn’t the first expression a range where’s the second a single value? It’d be like [0,1] === 0
by koolba 8y ago
Been a while since I’ve used any Ruby but isn’t the first expression a range where’s the second a single value?
It’d be like [0,1] === 0
- chrisseaton 8y ago> isn’t the first expression a range where’s the second a single value? `===` conventionally means 'matches', or 'includes', so an aggregate on the LHS and a scalar on the RHS is typical. It isn't defined for `Array` beyond being the default of equality - I don't know why - but it is defined for `Range`.