Capy-Bearer Documentation

Append a child

lib call

Capy

function push(value : any, child : as any) any

Description

push(value, child) appends child with the next numeric key. It changes and returns value.

Parameters

value : target value

child : value to append

Return Values

The changed target value.

Example

Capy

var list := any([])
list = push(list, "Ada")
print(list[0], "\n")

Output

Ada