LogoList list = (LogoList) arg0;
if (list.isEmpty()) {
throw new EngineException(context, this,
I18N.errorsJ().getN("org.nlogo.prim.etc.$common.emptyListInput", displayName()));
}
return list.butLast();
} else if (arg0 instanceof String) {
String string = (String) arg0;
if (string.length() == 0) {
throw new EngineException(context, this,
I18N.errorsJ().getN("org.nlogo.prim.etc.$common.emptyStringInput", token().name()));