arraylast( in theory
Gary Yonaites
gary at yonaites.com
Sat Feb 23 09:23:20 PST 2008
I think array( and extract( works the same way as arraylast if used
comparably. Your use is forcing a nonexistent element to the test
array to force the "" return value. If however you let the array
( function determine the length of the test array using the arraysize
( function [this is what arraylast( uses in the formula] you will get
the samr value as the arraylast returns. Why can't the only element
in an array be both the first element and the last element? If you
had a line of people waiting at the ticket counter and it was down to
the final person he would be the last in line but he would also be
the first in line. I personally think that returning "" when using
arraylast( on a single element array would be illogical but I've got
a nasty cold and my head is stuffed with ostrich feathers.
Gary
gary at yonaites.com
On Feb 23, 2008, at 9:51 AM, James Cook wrote:
> I don't know if it's a bug or not, but I would expect that arrylast(
> would respond much as a regular array( if there is no more than a
> single element in an array.
More information about the Qna
mailing list