.. (spanned range) operator

The spanned range operator creates a Range from its endpoints.

Usage

Range<Integer> ten = 1..10;

Description

Definition

The .. operator is defined as follows:

span(lhs, rhs)

See the language specification for more details.

Polymorphism

The .. operator is not polymorphic. The meaning of .. depends on the Enumerable class.

Type

The result type of the lhs..rhs operator is Range<Lhs> where Lhs is the type of lhs.

See also