Пример #1
0
        Value range(FunctionArguments arguments, SymbolTable symbol_table)
        {
            arguments.check_num_args_minimum(2);
            arguments.check_num_args_maximum(3);

            int start = arguments.get_int_argument(0, null, null, symbol_table, round_double: true);
            int stop  = arguments.get_int_argument(1, null, null, symbol_table, round_double: true);
            int step  = arguments.get_int_argument(2, null, 1, symbol_table, round_double: true);

            return(new RangeValue(start, stop, step));
        }