Extracted from Pike v8.0 release 28 as of 2015-09-20.
   

Method Array.push()


Method push

array push(array list, mixed element)

Description

Threats an Array as a stack and pushes the element onto the end.

Example

Array.push(({ "a", "b", "c", "d" }), "e"); > ({ "a", "b", "c", "d", "e" })

See also

ADT.Stack, ADT.Stack.push