Note: information on this page refers to Ceylon 1.1, not to the current release.

: (measured range) operator

The measured range operator creates a Range from a starting point and a length.

Usage

Range<Integer> ten = 1:10;

Description

Definition

The lhs:rhs operator is defined as:

measure(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 Lhs[] where Lhs is the type of lhs.

See also