GET_RANGE
Retorna um intervalo de números entre início e fim (inclusive).
Sintaxe
GET_RANGE(maxLimit, first, last)
Argumentos
| Nome | Tipo | Descrição | Valor padrão |
|---|---|---|---|
| maxLimit | int | 10000000 | |
| first | numérico | ||
| last | numérico |
Retorna
Retorna um valor bigint.
Exemplos
| maxLimit | first | last | Saída |
|---|---|---|---|
| 10000000 | 0 | 0 | [0] |
| 10000000 | 0 | 2 | [0, 1, 2] |
| 10000000 | 5 | 2 | [5, 4, 3, 2] |
| 10000000 | 1.5 | 3.5 | [2, 3] |
| 10000000 | 5.2 | 3.5 | [5, 4] |
| 10000000 | array[0, 5] | array[2, 7] | [0, 1, 2, 5, 6, 7] |