Bale's code is the best way given your first example, but under other circumstances one could also use plural typed constants:
int x = 15;
boolean[int]range = $ints[1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
switch{
case $ints[11, 12, 13, 14, 15] contains x:
print("func_x"); break;
case...