put

Puts a new item (key, value) into a map< K, V >.

Parameters:

No. Type Comments
1 map< K, V > The map object we wish to put a new entry
2 Value of type K Key to be used for the new entry
3 Value of type V Value to be used for the new entry

Returns: void - no result.

Usages:

  • put( v:map<K, V>, key:K, val:V ) : void