return bool(val.length() != value.length(), ctx);
}
@Override
protected LessThanOrEqualResult lessThanOrEqualList(ListResult that) {
IList left = that.getValue();
IList right = getValue();
if (left.length() == 0) {
return new LessThanOrEqualResult(right.length() > 0, right.length() == 0, ctx);
}
else if (left.length() > right.length()) {
return new LessThanOrEqualResult(false, false, ctx);
}
OUTER:for (int iThat = 0, iThis = 0; iThat < left.length(); iThat++) {
for (iThis = Math.max(iThis, iThat) ; iThis < right.length(); iThis++) {
if (left.get(iThat).isEqual(right.get(iThis))) {
continue OUTER;
}
}
return new LessThanOrEqualResult(false, false, ctx);
}
return new LessThanOrEqualResult(left.length() < right.length(), left.length() == right.length(), ctx);
}