Lipi Reference
Lipi

Functions

array.concat()

Appends the elements of `id2` to the end of `id1` and returns `id1`. `id2` is not changed.

Syntax

                array.concat(series array id1, series array id2) → series array
              

Arguments

id1 required series array
id2 required series array

Return Type

series array

Example


          //@lipi=2
indicator("array.concat Example", overlay=false)
a = array.from(1.0, 2.0)
b = array.from(3.0, 4.0)
array.concat(a, b)
// a is now 1.0, 2.0, 3.0, 4.0
plot(array.length(a), title="Length (4)", color=color.blue)