Step

Input: Step(f(n), For(n, a, b))
$$f(a), f\!\left(a + 1\right), \ldots, f(b)$$

Enumerated sequence. This is a syntactical construct which does not represent a mathematical object on its own. It can be inserted among the arguments to a function or operator to generate a run of arguments.

Input: f(Step(Pow(k, 2), For(k, 1, 10)))
$$f\!\left({1}^{2}, {2}^{2}, \ldots, {10}^{2}\right)$$

Calling a function with a run of arguments.

Input: Tuple(Step(1/k, For(k, a, b)))
$$\left(\frac{1}{a}, \frac{1}{a + 1}, \ldots, \frac{1}{b}\right)$$

Constructing a tuple with a run of elements. Note: the Tuple operator understands iteration directly, so in this case Tuple(1/k, For(k, a, b)) would be equivalent.

Input: f(Step(Repeat(n, n), For(n, 0, N)))
$$f\!\left(\underbrace{0, \ldots, 0}_{0 \text{ times}}, \underbrace{1, \ldots, 1}_{1 \text{ times}}, \ldots, \underbrace{N, \ldots, N}_{N \text{ times}}\right)$$

Composing Step with Repeat.

Last updated: 2020-03-06 00:22:16