The most confusing thing about this operator, in all its guises, is that it is not a syntactic construction, and so the resulting sequences do not splice themselves into enclosing lists, as in each of the following examples.
|
|
|
Use splice to fix that.
|
If a type of list, instead of a sequence, is desired, use toList or the operator new.
|
|
|
|
The operator can be used with sequences or lists, whose elements are of various types, to produce rectangular intervals.
|
|
|
Use ..< instead to get a sequence that stops short of the endpoint.
This operator may be used as a binary operator in an expression like x..y. The user may install binary methods for handling such expressions with code such as
X .. Y := (x,y) -> ...
where X is the class of x and Y is the class of y.