1Array.shift(3kaya)           Kaya module reference          Array.shift(3kaya)
2
3
4

NAME

6       Array::shift  - Get the first item off an array, and remove it from the
7       array.
8

SYNOPSIS

10       a shift( var [a] array )
11

ARGUMENTS

13       array The array
14

DESCRIPTION

16       Get the first item off an array, and remove it from the array.
17
18
19    array = [1,2,3];
20    v = shift(array);
21    // array = [2,3]; v = 1;
22

AUTHORS

24       Kaya  standard  library  by  Edwin  Brady,  Chris  Morris  and   others
25       (kaya@kayalang.org). For further information see http://kayalang.org/
26

LICENSE

28       The  Kaya  standard  library  is free software; you can redistribute it
29       and/or modify it under the terms  of  the  GNU  Lesser  General  Public
30       License  (version  2.1  or  any later version) as published by the Free
31       Software Foundation.
32
34       Array.push (3kaya)
35       Array.pop (3kaya)
36       Array.removeAt (3kaya)
37       Array.unshift (3kaya)
38
39
40
41Kaya                             December 2010              Array.shift(3kaya)
Impressum