setd

Definition: setd(object key, object data, integer tid=1)

putd() is a simple alias of setd() and as such behaves identically.
Description: Add a key and data pair to a dictionary.

tid can be omitted, to use the default dictionary, or the result of a previous new_dict() call.
Comments: Any key can be mapped to any value, and both can be anything (integer|atom|string|[nested]sequence, including 0|NULL).

It makes no difference whatsoever if you use putd() or setd(); it is simply a matter of personal preference (and in my case, forgetfulness).

If the key already exists, no error occurs, and the existing previously associated data is simply overwritten.
Example:
setd("key","data")
See Also: getd (regarding case-insensitive keys), new_dict