# extend.range

## extend.range(T.n : number) 🡒 U.*, table function

Creates multiple lines for each line of the original table. The resulting table U is an extension of the original table T. The values T.n must be positive integers or the function fails.

Example:

table T = with
[| as A |]
[| 1 |]
[| 1 |]
[| 3 |]

table U = extend.range(T.A)

show table "" a1c6 with
T.A
U.N


The function extend.range fails if:

• it receives a non-integer argument.
• it receives a negative argument (zero is valid).
• it would create on average more than 10 thousand output lines per input line or 1 billion lines, whichever is higher.