function

first . array . sncode

VERSIONlatest Return first element from array.

FIRST

NAME

first - Return first element from array.

SYNOPSIS

first(array)

DESCRIPTION

This function return the first element of an array. The array is not modified

So if a = [1,2,3,4,5]; top(a) return 1 and a has value 1,2,3,4,5.

Function first and top are synonym.

EXAMPLES

        a = [1,2,3,4,5];

        a.top();

        a.last();

        a.shift();

        a;

        a.pop();

        a;

    will return es=151[2,3,4,5]5[2,3,4].

AUTHOR

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