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

x[y...] (upper span) operator

The upper span operator returns the tail of its left-hand Ranged operand as specified by its right-hand operand.

Usage

String[] names = {"foo", "bar", "baz"};
String[] secondAndThird = names[1...];
String[] third = names[2...];
String[] emptySequence = names[3...];

Description

Definition

The lhs[rhs...] operator is defined as follows:

lhs.spanFrom(rhs)

See the language specification for more details.

Polymorphism

The x[y...] operator is polymorphic. The meaning of x[y...] depends on the Ranged interface.

Type

The result type of the lhs[from..] operator is the element type of the Ranged lhs.

See also