Class ArrayPush

java.lang.Object
ortus.boxlang.runtime.bifs.BIF
ortus.boxlang.runtime.bifs.global.array.ArrayPush

@BoxBIF @BoxMember(type=ARRAY) public class ArrayPush extends BIF
  • Constructor Details

    • ArrayPush

      public ArrayPush()
      Constructor
  • Method Details

    • _invoke

      public Object _invoke(IBoxContext context, ArgumentsScope arguments)
      Adds an element or an object to the end of an array, then returns the size of the modified array.
      Specified by:
      _invoke in class BIF
      Parameters:
      context - The context in which the BIF is being invoked.
      arguments - Argument scope for the BIF.
      Returns:
      The result of the invocation