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

[REBOL] Series manipulation Help

From: charles::wardell::dendrite::com at: 9-Nov-2004 12:29

Series manipulation. Lst: ["Charlie" 120912 "Peter" 239823 "Sam" 9238923 "Tiana" 92348] I want to find "Sam" and retrieve his ID I them want to remove Sam his ID from Lst: and append it to the end of Lst: I was working down this path, but I am sure there must be an easier way: i: index? find Lst key name: pick Lst i ID: pick Lst i + 1 top: copy/part i - 1 bottom: find Lst Key remove bottom remove bottom newLst: join top bottom