arraylast( in theory

James Cook JC at JamesCook.biz
Sat Feb 23 10:23:36 PST 2008


At 11:28 AM -0600 2/23/08, David Thompson wrote:
>"abcd"["-.",-1][".",-1][2,-1]

Actually  "abcd"["-.",-1][2,-1] will do it and that's the method I've 
resorted to.

The scenario begs the question though, since  array("abcd",1,".") 
duplicates arrayfirst("abcd","."), what's the point of arrayfirst(?

And using Gary's example of  one person buying a ticket, technically 
he's not the last person in line;  there is no line.  His backside 
would be the separator and there's no one following his backside. If 
I want to grab the last element of an array and there is no array, it 
would seem that arraylast( should be empty. Otherwise, it would seem 
that a high percentage of uses for it need to determine if an array 
actually exists.

As I noted, I can see all kinds of arguments either way. I also see a 
need to easily grab the last element of an array and be able to 
reliably know that I actually have an array in the first place 
without resorting to other tests.


-- 
James Cook
JC at JamesCook.biz
720-252-7042

Proficiencies
http://JamesCook.biz

Founder of HindSight Ltd.
http://HSLtd.us

Custom Panorama Applications
Specializing in Panorama Enterprise for the Web


More information about the Qna mailing list