Class ArrayShift
java.lang.Object
ortus.boxlang.runtime.bifs.BIF
ortus.boxlang.runtime.bifs.global.array.ArrayShift
@BoxBIF(description="Remove and return the first element from an array")
@BoxMember(type=ARRAY)
public class ArrayShift
extends BIF
-
Field Summary
Fields inherited from class ortus.boxlang.runtime.bifs.BIF
__functionName, __isMemberExecution, asyncService, cacheService, componentService, declaredArguments, functionService, interceptorService, logger, moduleService, runtime, schedulerService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription_invoke(IBoxContext context, ArgumentsScope arguments) Removes the first element from an array and returns the removed element.Methods inherited from class ortus.boxlang.runtime.bifs.BIF
announce, getDeclaredArguments, invoke
-
Constructor Details
-
ArrayShift
public ArrayShift()Constructor
-
-
Method Details
-
_invoke
Removes the first element from an array and returns the removed element. This method changes the length of the array. If used on an empty array, an exception will be thrown.
-