PUSH

NAME

push - Push an element on top of an array

SYNOPSIS

push(array, expression)

DESCRIPTION

This function is used to push an element on top of an array

This function is used to push an element on top of the array. This means that if the array contains 3 elements at first, by using the function Push, the user will add a fourth element at the end of the array. This element is chosen by the user in the definition of this function.

EXAMPLES

a=[1,2,3];
push(a, 5);
a; // return [1,2,3,5]

SEE ALSO

Array

AUTHOR

Written by Pierre Laplante and Caroline Laplante, <laplante@sednove.com>

MODIFICATIONS

1.0 2014-09-09 21:24:14 laplante@sednove.com