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

[REBOL] Re: Reverse select?

From: ale870::gmail::com at: 8-Aug-2007 21:35

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! On 8/8/07, Anton Rolls <anton-wilddsl.net.au> wrote:
> > states: ["AZ" "Arizona" "WY" "Wyoming" "FL" "Florida"] > > all [pos: find states "Wyoming" pick pos -1] > ;== "WY" > > Anton. > > > Given > > > > states: [ "AZ" "Arizona" "WY" "Wyoming" "FL" "Florida" ] > > > > How can I 'reverse select', i.e. find "WY" given "Wyoming" ? > > > > TIA, > > Kai > > -- > To unsubscribe from the list, just send an email to > lists at rebol.com with unsubscribe as the subject. >
-- --Alessandro