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
-- 
To unsubscribe from the list, just send an email to rebol-request
at rebol.com with unsubscribe as the subject.

Reply via email to