Class ArrayRange

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

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

    • ArrayRange

      public ArrayRange()
      Constructor
  • Method Details

    • _invoke

      public Object _invoke(IBoxContext context, ArgumentsScope arguments)
      Build an array out of a range of numbers or using our range syntax: {start}..{end} or using the from and to arguments

      You can also build negative ranges

       arrayRange( "1..5" )
       arrayRange( "-10..5" )
       arrayRange( 1, 500 )
       
      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