We don't cover this exact combination of features directly in the book; this falls out of composing the "pattern match" feature with the "range" feature.
It's also possible that you're reading a version of the book before the ..= syntax was introduced; it hasn't been there since 1.0.