Re: Delete the first entry of an array.

2016-03-28 Thread Mike Kerner
don't make me go all LISP on you...or APL On Sun, Mar 27, 2016 at 7:03 PM, Dr. Hawkins wrote: > On Sat, Mar 26, 2016 at 4:40 PM, Alex Tweedly wrote: > > > e, and hence be able to do completely dense arrays, just like Fortran > etc. > > (he said, making

Re: (way OT, WAS: )Re: Delete the first entry of an array.

2016-03-27 Thread J. Landman Gay
On 3/27/2016 6:59 PM, Dr. Hawkins wrote: I've been out-crankied! LOL. But actually I think the final score is three out of four, so you are still in the running. :) -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software |

Re: (way OT, WAS: )Re: Delete the first entry of an array.

2016-03-27 Thread Dr. Hawkins
On Sun, Mar 27, 2016 at 4:36 PM, Alex Tweedly wrote: > Hmmm ... not real Fortran. (that should be said in a deep, impressive > voice) > Real Fortran died when Fortran 77 took over :-( > I've been out-crankied! > > And, AFAIK, only those modern variants from (I think)

Re: Delete the first entry of an array.

2016-03-27 Thread Dr. Hawkins
On Sat, Mar 26, 2016 at 4:40 PM, Alex Tweedly wrote: > e, and hence be able to do completely dense arrays, just like Fortran etc. > (he said, making about 50 wild assumptions about a language he can't find a > spec for :-) Just to throw gas on the flames (petrol for you

Re: Delete the first entry of an array.

2016-03-27 Thread Alex Tweedly
On 27/03/2016 20:47, Ali Lloyd wrote: True - but sadly there's no effective way to filter those 523 entries to see only the ones that are relevant to a List type. One way to do this is to click the 'lists' filter in the tags section. Thanks. I had tried typing 'list' into the search box,

Re: Delete the first entry of an array.

2016-03-27 Thread Ali Lloyd
> True - but sadly there's no effective way to filter those 523 entries to > see only the ones that are relevant to a List type. One way to do this is to click the 'lists' filter in the tags section. On Sun, Mar 27, 2016 at 5:33 PM Alex Tweedly wrote: > > > On 27/03/2016

Re: Delete the first entry of an array.

2016-03-27 Thread Alex Tweedly
On 27/03/2016 10:42, Peter TB Brett wrote: On 26/03/2016 23:40, Alex Tweedly wrote: I haven't found (can't find) a spec for LCB, so I'm not sure exactly what "proper lists" are - but I think maybe not quite what I meant. There's a spec in the "Guides" tab of the LC8 dictionary -- look for

Re: Delete the first entry of an array.

2016-03-27 Thread Peter TB Brett
On 26/03/2016 23:40, Alex Tweedly wrote: I haven't found (can't find) a spec for LCB, so I'm not sure exactly what "proper lists" are - but I think maybe not quite what I meant. There's a spec in the "Guides" tab of the LC8 dictionary -- look for "LiveCode Builder Language Reference".

Re: Delete the first entry of an array.

2016-03-26 Thread Alex Tweedly
On 26/03/2016 07:35, Peter TB Brett wrote: On 25/03/2016 23:00, Alex Tweedly wrote: How about a Feature Exchange for adding arrays ? (i.e. not dictionaries, but actual arrays with numeric indices and linear access times) In LiveCode, we currently call these "proper lists". LiveCode

Re: Delete the first entry of an array.

2016-03-26 Thread Richard Gaskin
Peter TB Brett wrote: On 26/03/2016 14:18, Richard Gaskin wrote: Is there an estimate for when indexed arrays ("proper lists") may become available in LiveCode Script? Not currently on the roadmap. Given how frequently it's been requested for many years I was surprised I couldn't find an

Re: Delete the first entry of an array.

2016-03-26 Thread Peter TB Brett
On 26/03/2016 14:18, Richard Gaskin wrote: Is there an estimate for when indexed arrays ("proper lists") may become available in LiveCode Script? Not currently on the roadmap. Peter -- Dr Peter Brett LiveCode Open Source Team

Re: Delete the first entry of an array.

2016-03-26 Thread Richard Gaskin
Peter TB Brett wrote: > On 25/03/2016 23:00, Alex Tweedly wrote: > >> How about a Feature Exchange for adding arrays ? (i.e. not >> dictionaries, but actual arrays with numeric indices and linear >> access times) > > In LiveCode, we currently call these "proper lists". > > LiveCode arrays

Re: Delete the first entry of an array.

2016-03-26 Thread Peter TB Brett
On 25/03/2016 23:00, Alex Tweedly wrote: How about a Feature Exchange for adding arrays ? (i.e. not dictionaries, but actual arrays with numeric indices and linear access times) In LiveCode, we currently call these "proper lists". LiveCode arrays currently have O(log N) read and insertion

Re: Delete the first entry of an array.

2016-03-25 Thread Richard Gaskin
Alex Tweedly wrote: > How about a Feature Exchange for adding arrays ? (i.e. not > dictionaries, but actual arrays with numeric indices and linear > access times) lulz. Cute, but of course associative arrays are indeed a type of array. But yes, it would be nice to also support indexed

Re: Delete the first entry of an array.

2016-03-25 Thread Alex Tweedly
On 25/03/2016 08:03, Peter TB Brett wrote: Hi Peter, LiveCode arrays are actually dictionaries (more like JavaScript objects than JavaScript arrays). There aren't currently any push/pop syntax for LiveCode arrays. ... I hope that's helpful. Would anyone be interested in a Feature

Re: Delete the first entry of an array.

2016-03-25 Thread Mike Bonner
Leave things as they are, delete the first element, and keep track of an offset value that you use to grab array elements. If your array starts at 1, and you haven't deleted any elements from the front, the offset is 0. If you delete 2 items, from the front, the offset is 2. If you want to

Feature Exchange for Array extensions (Was Re: Delete the first entry of an array.)

2016-03-25 Thread Paul Dupuis
On 3/25/2016 4:03 AM, Peter TB Brett wrote: > Would anyone be interested in a Feature Exchange for adding some new > array operators (such as push and pop) to the language? > > Peter I'm not very interested in a push and pop functions, but what I have been

Re: Delete the first entry of an array.

2016-03-25 Thread Peter W A Wood
Thanks Kay > On 25 Mar 2016, at 17:22, Kay C Lan wrote: > > On Fri, Mar 25, 2016 at 3:33 PM, Peter W A Wood wrote: > >> delete pList[“numbers”] 1 ## Is this >> the correct syntax? > > No. Shouldn't it be:

Re: Delete the first entry of an array.

2016-03-25 Thread Kay C Lan
On Fri, Mar 25, 2016 at 3:33 PM, Peter W A Wood wrote: > delete pList[“numbers”] 1 ## Is this > the correct syntax? No. Shouldn't it be: delete variable pList["number"][1] At least that works for me, although in your case I think,

Re: Delete the first entry of an array.

2016-03-25 Thread Peter W A Wood
Peter Thanks for the suggestions. > On 25 Mar 2016, at 16:03, Peter TB Brett wrote: > > On 2016-03-25 08:33, Peter W A Wood wrote: >> I have an array which contains a second array. (myArray[“numbers”][]). >> ... >> automatically change the index of the remaining

Re: Delete the first entry of an array.

2016-03-25 Thread Peter TB Brett
On 2016-03-25 08:33, Peter W A Wood wrote: I have an array which contains a second array. (myArray[“numbers”][]). The numbers array is a traditional array with elements 1..n. I want to remove the first element of the numbers array and shuffle all the others up. Is there a simple way of doing

Delete the first entry of an array.

2016-03-25 Thread Peter W A Wood
I have an array which contains a second array. (myArray[“numbers”][]). The numbers array is a traditional array with elements 1..n. I want to remove the first element of the numbers array and shuffle all the others up. Is there a simple way of doing this in LiveCode (equivalent to the shift()