Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: Reverse select?

From: ale870:gm:ail at: 10-Aug-2007 22:09

I agree with you. It could be a good refinement a /reverse option! On 8/10/07, Tim Johnson <tim-johnsons-web.com> wrote:
> > On Wednesday 08 August 2007, Anton Rolls wrote: > > SELECT does not have any refinement to control > > search direction. > > > > You could do: > > > > select reverse copy states "Wyoming" > > > > But I don't recommend that because it's quite inefficient, > > which would affect large datasets. > A function (such as my 'before function) > that uses: > > either found: find data key[pick data (index? found) - 1][none] > > Is easy enough to write and is probably acceptably efficient, > but to implement it in the "C" code so that 'select would > have a 'before refinement would be most useful... > and speed up performance. > > MTCW > Tim > > > Regards, > > > > Anton. > > > > > Hello, > > > > > > regarding the solution proposed by Gregg, I have a question: > > > >> select reverse states "Wyoming" > > > > > > I think in such case the solution could be very slow, since Rebol > > > reverses the data every time. > > > Is it right? > > > > > > If so, is there any way to avoid the reverse process, but > communicating > > > to Rebol to search in back? > > > > > > Thank you! > > -- > To unsubscribe from the list, just send an email to > lists at rebol.com with unsubscribe as the subject. >
-- --Alessandro