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

[REBOL] Searching in "table"

From: kpeters:otaksoft at: 4-Sep-2007 20:27

That was a horrible read - let me try this again: I am struggling with this problem: Given the "table" table: [ [ 3 "Tim" "Peterson" 2 ] [ 1 "John" "Smith" 3 ] [ 2 "Jeff" "Brown" 1 ] ] How can I search for the record whose first value is 1 (= John Smith) and return its index in the table ( = 2 in this case) ? The search criterion is only unique in the fist value of each "record". As always, thanks for any help! Kai