put

Associates the specified value with the specified key in the specified associative array. If the associative array previously contained a mapping for the key, the old value is replaced by the specified value. (An associative array <tt>aa</tt> is said to contain a mapping for a key <tt>k</tt> if and only if m.containsKey(k) would return <tt>true</tt>.)

V
put
(
K
V
)
(
V[K] aa
,
K key
,)

Parameters

aa V[K]

the associative array to add the key/value pair to

key K

key with which the specified value is to be associated

value V

value to be associated with the specified key

Return Value

Type: V

the previous value associated with <tt>key</tt>, or or the newly associated value.

Meta