else
printf("%i\n", DA(&v)[i]);
} else if (strcmp(p, "first") == 0) {
- printf("%i\n", DA_FIRST(&v));
+ if (DA_LEN(&v))
+ printf("%i\n", DA_FIRST(&v));
+ else
+ puts("*RANGE*");
} else if (strcmp(p, "last") == 0) {
- printf("%i\n", DA_LAST(&v));
+ if (DA_LEN(&v))
+ printf("%i\n", DA_LAST(&v));
+ else
+ puts("*RANGE*");
} else if (strcmp(p, "show") == 0) {
if (DA_LEN(&v) == 0)
puts("*EMPTY*");