integerrange
Integerrange, or integer range, refers to a contiguous set of integers bounded by two endpoints. In mathematics it is typically described as the intersection of the integers Z with a real interval, commonly denoted [a, b] ∩ Z or {k ∈ Z | a ≤ k ≤ b}. The endpoints may be finite or infinite, yielding finite ranges or infinite ones such as {k ∈ Z | k ≥ a}.
For a finite inclusive range [a, b] ∩ Z with a ≤ b, the range contains b − a +
In arithmetic terms, an integerrange can be viewed as a discrete interval or an arithmetic progression with
In computer science, range constructs are common but their exact behavior depends on the language. Some languages
Examples help illustrate: the integers from 3 to 7 inclusive form {3, 4, 5, 6, 7}; in
See also discrete intervals, integer lattice, and range semantics across programming languages.