static class Removeat extends ROperator {
Removeat() {super("removeat");}
public void execute(DTState state) throws RulesException {
int position = state.datapop().intValue();
RArray rarray = (RArray)state.datapop();
if(position >= rarray.size()){
state.datapush(RBoolean.getRBoolean(false));
}
ArrayList array = rarray.arrayValue();
if(state.testState(DTState.TRACE)){
state.traceInfo("removed", "arrayID",rarray.getID()+"","position",position+"",null);
}
array.remove(position);
state.datapush(RBoolean.getRBoolean(true));
}