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>
|