: (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
..(spanned range)- object creation operators in the language specification
- operator precedence in the language specification
- Operator polymorphism in the Tour of Ceylon