Contents

length

The number of items in the range.

Declaration

var length: Int

Discussion

This value can be 0 to represent an empty range. For type compatibility with the rest of the system, the maximum value you should use for length is LONG_MAX.

See Also

Accessing range properties