Thank you for such a quick reply and I like your clever approach. but I
think I will run into problems if the target-id is non-unique.=20

Any suggestions?

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of [EMAIL PROTECTED]
Sent: Tuesday, November 09, 2004 12:53 PM
To: [EMAIL PROTECTED]
Subject: [REBOL] Re: Series manipulation Help


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=20
like this where Charlie and Sam have the same id:

lst: ["Charlie" 11111 "Peter" 239823 "Sam" 11111 "Tiana" 92348]

Sunanda
--=20
To unsubscribe from the list, just send an email to rebol-request
at rebol.com with unsubscribe as the subject.


-- 
To unsubscribe from the list, just send an email to rebol-request
at rebol.com with unsubscribe as the subject.

Reply via email to