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

[REBOL] Re: Bidirectional value mapping.

From: bga:bug-br at: 3-Nov-2003 17:11

Hello Patrick. Thanks! This works great (although there is data duplication). It even works in a case like this:
>> firstvalue:1
== 1
>> secondvalue: 2
== 2
>> thirdvalue: 3
== 3
>> fourthvalue: 4
== 4
>> test: [ 1 2 1 3 4 3 ]
== [1 2 1 3 4 3]
>> select teste 1
== 2
>> select teste 2
== 1
>> select teste 3
== 4
>> select teste 4
== 3 It looks select just returns after the first occurence of the data being searched with, in this case, is a good thing. -Bruno