Definition

Half-open range

A half-open range includes the left boundary and excludes the right boundary, so its length is the right boundary minus the left boundary.