Capy-Bearer Documentation

Append a child

lib call

Capy

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

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 := dval([])
list = push(list, "Ada")
print(list[0], "\n")