Hi list

I need to replace a value in a hash!, and find I cannot use 'replace.

The hash is like this:
>> a: make hash! [1 "A" 2 "B" 3 "C" 4 "D"]
=3D=3D make hash! [1 "A" 2 "B" 3 "C" 4 "D"]

Now let's say I have
>> e: "E"
=3D=3D "E"
and that I want to replace "C" with "E" in 'a.

I'd like to do something like this:
replace/select a 3 e
but instead, I have to do two statements, like this:
>> remove next find a 3
=3D=3D make hash! [4 "D"]
>> insert next find a 3 e
=3D=3D make hash! [4 "D"]

Then we get
>> a
=3D=3D make hash! [1 "A" 2 "B" 3 "E" 4 "D"]

But maybe someone knows how to achieve this in a simpler manner?

HY

Pr=E6tera censeo Carthaginem esse delendam

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

Reply via email to