Ejemplo n.º 1
0
 /**
  * This method returns the extracted slice of the list.
  *
  * @access public
  * @static
  * @param IArrayList\Type $xs                               the left operand
  * @param IInt32\Type $offset                               the starting index
  * @param IInt32\Type $length                               the length of the slice
  * @return IArrayList\Type                                  the list
  */
 public static function slice(IArrayList\Type $xs, IInt32\Type $offset, IInt32\Type $length) : IArrayList\Type
 {
     return IArrayList\Type::box(array_slice($xs->unbox(), $offset->unbox(), $length->unbox()));
 }