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

[REBOL] Re: Series manipulation Help

From: SunandaDH:aol at: 9-Nov-2004 12:52

Charles:
> I was working down this path, but I am sure there must be an easier way:
here's one possibility: lst: ["Charlie" 120912 "Peter" 239823 "Sam" 9238923 "Tiana" 92348] target: "sam" target-id: select lst target if not none? target-id [ alter lst target alter lst target-id append lst target append lst target-id ] probe lst This works provided there are no duplicate ids in lst. It would fail on a lst like this where Charlie and Sam have the same id: lst: ["Charlie" 11111 "Peter" 239823 "Sam" 11111 "Tiana" 92348] Sunanda