Not so beautifull but maybe work: removefromobj: func [obj word] [ make object! head remove remove skip third obj add index? find first obj word -1 ]
rr: make object! [ a: 1 b: 2 c: 3 ] probe removefromobj rr 'b > Dear list > > I'm trying to dynamically add and remove words from an > object. So far I can do the add words as follows: > >>> obj: make object! [a: 1 b: 2] >>> probe obj > > make object! [ > a: 1 > b: 2 > ] >>> obj: make obj [c: 3] >>> probe obj > > make object! [ > a: 1 > b: 2 > c: 3 > ] >>> > > now I want to remove c from obj. How do I do that. I > know I could dynamically reconstruct it from scratch, but > that is not very elegant. There must be a better way to > get back to obj being: > > make object! [a: 1 b: 2] > > Any ideas? > > Thanks > > - Luke -- To unsubscribe from this list, just send an email to [EMAIL PROTECTED] with unsubscribe as the subject.