diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2004-03-12 23:21:04 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2004-03-12 23:21:04 (GMT) |
commit | 5c57bce0a0440c73bd76ec096ffa1c3d0f525b9f (patch) | |
tree | b25e6c22ddc9fcd22aa3620d1debe028b7cd571e /doc/dict.n | |
parent | 1969f4d63cdf7429ac325c01e8d15c4fcd94afc0 (diff) | |
download | tcl-5c57bce0a0440c73bd76ec096ffa1c3d0f525b9f.zip tcl-5c57bce0a0440c73bd76ec096ffa1c3d0f525b9f.tar.gz tcl-5c57bce0a0440c73bd76ec096ffa1c3d0f525b9f.tar.bz2 |
Implementation of [dict merge] subcommand, based on [FRQ 745851]
Diffstat (limited to 'doc/dict.n')
-rw-r--r-- | doc/dict.n | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -4,7 +4,7 @@ '\" See the file "license.terms" for information on usage and redistribution '\" of this file, and for a DISCLAIMER OF ALL WARRANTIES. '\" -'\" RCS: @(#) $Id: dict.n,v 1.2 2003/04/10 13:11:06 dkf Exp $ +'\" RCS: @(#) $Id: dict.n,v 1.3 2004/03/12 23:21:05 dkf Exp $ '\" .so man.macros .TH dict n 8.5 Tcl "Tcl Built-In Commands" @@ -133,6 +133,13 @@ keys are treated as if they map to an empty list, and it is legal for there to be no items to append to the list. It is an error for the value that the key maps to to not be representable as a list. .TP +\fBdict merge \fR?\fIdictionaryValue ...\fR? +Return a dictionary that contains the contents of each of the +\fIdictionaryValue\fR arguments. Where two (or more) dictionaries +contain a mapping for the same key, the resulting dictionary maps that +key to the value according to the last dictionary on the command line +containing a mapping for that key. +.TP \fBdict remove \fIdictionaryValue \fR?\fIkey ...\fR? Return a new dictionary that is a copy of an old one passed in as first argument except without mappings for each of the keys listed. |