Unless I'm mistaken, a range can only include unique numbers. So, a number could be in it or not.
I guess only if we want to pass a range as one of many accepted types (dynamic) to some function would it make sense.
However, it seems like if it would go over the whole range to count a number it would be very inefficient.
I tried to time it compared to "in
", but on my machine it seems they have the same timing. Can that be right?