# routine ...

Documentation for routine `...` assembled from the following types:

# language documentation Operators

From Operators

## (Operators) infix ...

The sequence operator, which can be written either as `...` or as `…` (with variants `...^` and `…^`) will produce (possibly lazy) generic sequences on demand.

The left-hand side will always include the initial elements; it may include a generator too (after the first element or elements). The right-hand side will have an endpoint, which can be `Inf` or `*` for "infinite" lists (that is, lazy lists whose elements are only produced on demand), an expression which will end the sequence when `True`, or other elements such as Junctions.

The sequence operator invokes the generator with as many arguments as necessary. The arguments are taken from the initial elements and the already generated elements. The default generator is `*.`succ or `*.`pred, depending on how the end points compare:

An endpoint of `*` (Whatever), `Inf` or `∞` generates on demand an infinite sequence, with a default generator of `*.succ`

Custom generators need to be the last element of the list before the '...' operator. This one takes two arguments, and generates the eight first Fibonacci numbers

Of course the generator can also take only one argument.

There must be at least as many initial elements as arguments to the generator.

Without a generator and with more than one initial element and all initial elements numeric, the sequence operator tries to deduce the generator. It knows about arithmetic and geometric sequences.

If the endpoint is not `*`, it's smartmatched against each generated element and the sequence is terminated when the smartmatch succeeded. For the `...` operator, the final element is included, for the `...^` operator it's excluded.

This allows you to write

to generate all Fibonacci numbers up to but excluding 100.

The `...` operators consider the initial values as "generated elements" as well, so they are also checked against the endpoint:

# language documentation Operators

From Operators

## (Operators) listop ...

Called the yada, yada, yada operator or stub operator, if it's the only statement in a routine or type, it marks that routine or type as a stub (which is significant in the context of pre-declaring types and composing roles).

If the `...` statement is executed, it calls fail, with the default message `Stub code executed`.