public static ListValue Range(AnyValue startValue, AnyValue endValue, AnyValue stepValue) { long step = AsLong(stepValue); if (step == 0L) { throw new InvalidArgumentException("step argument to range() cannot be zero", null); } return(VirtualValues.range(AsLong(startValue), AsLong(endValue), step)); }
public static ListValue Range(AnyValue startValue, AnyValue endValue) { return(VirtualValues.range(AsLong(startValue), AsLong(endValue), 1L)); }