mirror of https://github.com/gohugoio/hugo
650 B
650 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 where0 <= x < 1
.