Re: [Hardhats-members] Traversing an array

2006-07-12 Thread Maury Pepper
) Q:N= SET B($QS(N,$QL(N)))=$QS(N,1) - Original Message - From: Kevin Toppenberg [EMAIL PROTECTED] To: hardhats-members@lists.sourceforge.net Sent: Tuesday, July 11, 2006 4:36 PM Subject: Re: [Hardhats-members] Traversing an array I was afraid you were going to say that... :-) Kevin

Re: [Hardhats-members] Traversing an array

2006-07-12 Thread Gregory Woodhouse
On Jul 11, 2006, at 11:22 PM, Maury Pepper wrote:here's a simple loop to create array B from array A with the following rules: For each data node in A, create a node in B having a subscript which is the last subscript of the A node, and set the value of the B node equal to the first subscript of

Re: [Hardhats-members] Traversing an array

2006-07-12 Thread Kevin Toppenberg
- From: Kevin Toppenberg [EMAIL PROTECTED] To: hardhats-members@lists.sourceforge.net Sent: Tuesday, July 11, 2006 4:36 PM Subject: Re: [Hardhats-members] Traversing an array I was afraid you were going to say that... :-) Kevin On 7/11/06, Greg Woodhouse [EMAIL PROTECTED] wrote: Try using

[Hardhats-members] Traversing an array

2006-07-11 Thread Kevin Toppenberg
I need to work on an array something like this. A(i1,i2a,i3)=dog A(i1,i2b,)=cat A(i1,i2b,i3a)=ape A(i2,i2b,i3b)=lion A(i2,i2c,i3)=seal A(i2,i2c,i3,i4,i5)=mouse I am wanting to reorder the array such that the highest index (i5 etc) is the primary index of the final array, and the first index is

Re: [Hardhats-members] Traversing an array

2006-07-11 Thread Greg Woodhouse
Try using $QS and $QL. --- Kevin Toppenberg [EMAIL PROTECTED] wrote: I need to work on an array something like this. A(i1,i2a,i3)=dog A(i1,i2b,)=cat A(i1,i2b,i3a)=ape A(i2,i2b,i3b)=lion A(i2,i2c,i3)=seal A(i2,i2c,i3,i4,i5)=mouse I am wanting to reorder the array such that the highest

Re: [Hardhats-members] Traversing an array

2006-07-11 Thread Kevin Toppenberg
I was afraid you were going to say that... :-) Kevin On 7/11/06, Greg Woodhouse [EMAIL PROTECTED] wrote: Try using $QS and $QL. --- Kevin Toppenberg [EMAIL PROTECTED] wrote: I need to work on an array something like this.

Re: [Hardhats-members] Traversing an array

2006-07-11 Thread Greg Woodhouse
Well, you don't HAVE to use them, repeatedly S X=$O(X,) until you run out of subscripts. But using $QL is a whole lot easier, and $QS allows you to pull out the subscript. --- Kevin Toppenberg [EMAIL PROTECTED] wrote: I was afraid you were going to say that... :-) Kevin On 7/11/06, Greg