Class ArraySum

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

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

    • ArraySum

      public ArraySum()
      Constructor
  • Method Details

    • _invoke

      public Object _invoke(IBoxContext context, ArgumentsScope arguments)
      Returns the sum of all values in an array
      Specified by:
      _invoke in class BIF
      Parameters:
      context -
      arguments - Argument scope defining the array.
      Returns:
      The result of the invocation
    • _invoke

      public static double _invoke(Array array)
      Return length of array
      Parameters:
      array - the array