Capy-Bearer Documentation

Remove the final child

lib call

Capy

function pop(value : dval) dval

Description

pop(value) removes the final child and returns value. It does not return the removed child.

Parameters

value : target value

Return Values

The changed target value.

Example

Capy

var list := dval(["first", "last"])
list = pop(list)
print(list[0], "\n")