Home
The collection.shift( ) method removes the first element of the collection and returns it as the function result.
Note: This method modifies the original collection.
If the collection is empty, this method does nothing.
C_COLLECTION($c) $c:=New collection(1;2;4;5;6;7;8) $val:=$c.shift() // $val=1 // $c=[2,4,5,6,7,8]
collection.push( ) collection.unshift( )
Product: 4D Theme: Collections
4D Language Reference ( 4D v19) 4D Language Reference ( 4D v19.1)