RE: [sv-ec] 5.15 Array manipulation methods - question

From: Rich, Dave <Dave_Rich_at_.....>
Date: Wed Nov 30 2005 - 08:21:44 PST
Yes, Arturo had already corrected me.

I'm sorry I confused you further, but the original issue remains.

My understanding is now that all of these methods return one dimensional
queues, regardless of the number of dimensions in the array they are
being evaluated upon. They are simply building a list of matches.

It would seem to me that any of the _index methods must be restricted to
scanning through only one dimension, the first dimension, at a time.

Methods that the LRM says return "the element" or "the index", like
first/last/min/max, actually return a queue of one element, or an empty
queue.

Dave


> -----Original Message-----
> From: Bresticker, Shalom [mailto:shalom.bresticker@intel.com]
> Sent: Wednesday, November 30, 2005 4:23 AM
> To: Rich, Dave; sv-ec@eda.org
> Subject: RE: [sv-ec] 5.15 Array manipulation methods - question
> 
> 
> >Coincidentally, I was reading this yesterday too and found that
> >not all
> >array manipulation methods should return queues, only find, and
> >find_index return queues.
> 
> [Shalom: ] I'm not completely sure what you meant by this, but the
LRM,
> as written, says that all the array locator methods return queues.
> 
> That means that methods like find_first also return queues, just that
> the queue contains only one element (unless no match is found, in
which
> case the queue will be empty).
> 
> Shalom
Received on Wed Nov 30 08:21:47 2005

This archive was generated by hypermail 2.1.8 : Wed Nov 30 2005 - 08:22:08 PST