Note: information on this page refers to Ceylon 1.0, not to the current release.
..
(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:
Range(lhs, rhs)
See the language specification for more details.
Polymorphism
The ..
operator is not polymorphic.
The meaning of ..
depends on the
Range
class.
Type
The result type of the lhs..rhs
operator is Range<Lhs>
where Lhs
is the type of lhs
.
See also
:
(segmented range)- object creation operators in the language specification
- operator precedence in the language specification
- Operator polymorphism in the Tour of Ceylon