realbasic-nug
[Top] [All Lists]

Re: Do you use Array.Pop?

To: REALbasic Network Users Group <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Do you use Array.Pop?
From: Ed Kleban <Ed at Kleban dot com>
Date: Sat, 31 Dec 2005 12:28:11 -0600
Delivered-to: realbasic-nug at lists dot realsoftware dot com
Thread-index: AcYON86rDXbRzXorEdqsCAANk0o3JgAACWO9
Thread-topic: Do you use Array.Pop?


On 12/31/05 12:27 PM, "Ed Kleban" <Ed at kleban dot com> wrote:

> 
> On 12/31/05 12:11 PM, "Phil M" <phil at mobleybros dot com> wrote:
> 
>> Isn't that a great function?  It removes and returns the last element
>> in an array.
>> 
>> Well I am a little bothered that the equivalent function was not
>> created to remove and return the first item of the array.  PHP calls
>> this function array_shift() but I don't think that name describes the
>> function well enough... what other names can you think of that would
>> describe a Pop function for the first element in the array?
>> 
> Yes, It would be very nice to have anArray.first and anArray.Last as
> accessors that returned array values.
> 

Or I guess in the context asked:  removeFirst to compliment pop which
essentially removeLast


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>