mathematical-notation

What does this square bracket and parenthesis bracket notation mean [first1,last1)?


I have seen number ranges represented here as [first1,last1) and [first2,last2) and would like to know what it means.


Solution

  • A bracket - [ or ] - means that end of the range is inclusive -- it includes the element listed. A parenthesis - ( or ) - means that end is exclusive and doesn't contain the listed element. So for [first1, last1), the range starts with first1 (and includes it), but ends just before last1.

    Assuming integers: