[REBOL] Re: Removing a key-value pair from a hash?
From: greggirwin:mindspring at: 23-Feb-2002 11:02
<< How would one write a function to take a hash and a key, and remove the
and the value that key is associated with from the hash? With O(1) time,
remove-key-val-pair: func [hash key] [
if found? find/skip hash key 2 [
remove/part find/skip hash key 2 2
I haven't tested it for performance and I don't know what FIND and REMOVE
do, internally, when operating on a hash!.