1
0
Fork 0
hugo/docs/content/en/quick-reference/glossary/interval.md

652 B

title
interval

An interval is a range of numbers between two endpoints: closed, open, or half-open.

  • A closed interval, denoted by brackets, includes its endpoints. For example, [0, 1] is the interval where 0 <= x <= 1.

  • An open interval, denoted by parentheses, excludes its endpoints. For example, (0, 1) is the interval where 0 < x < 1.

  • A half-open interval includes only one of its endpoints. For example, (0, 1] is the left-open interval where 0 < x <= 1, while [0, 1) is the right-open interval where 0 <= x < 1.