*/
static class Remove extends ROperator {
Remove() {super("remove");}
public void execute(DTState state) throws RulesException {
IRObject value = state.datapop();
RArray rarray = (RArray)state.datapop();
ArrayList array = rarray.arrayValue();
boolean removed = false;
if(value!=null){
for(int i=0; i<array.size();){
if(value.equals((IRObject)array.get(i))){
if(state.testState(DTState.TRACE)){
state.traceInfo("removed", "arrayID",rarray.getID()+"",value.postFix());
}
array.remove(i);
removed = true;
} else {
i++;