Kaya 0.5.3 reference for Array::shift

List of functions and data types in Array

a shift(var [a] array)

Arguments

Usage

Get the first item off an array, and remove it from the array.

array = [1,2,3];
v = shift(array);
// array = [2,3]; v = 1;

Related

kaya@kayalang.org | Last modified 29 November 2011 | Supported by Durham CompSoc | Powered by Kaya