\documentclass[]{article}
\usepackage{amsmath,graphicx,supertabular,hyperref,tabularx,ifthen}
\title{TIP \#163: A [dict merge] Subcommand}
\date{November 14, 2003}
\author{Joe English}
\urlstyle{sf}
\setlength{\parskip}{1ex}
\setlength{\parindent}{0pt}
\def\tipversion$#1${\texttt{\$#1\$}}
\def\tiplangle#1{\ensuremath{<}}
\def\tiprangle#1{\ensuremath{>}}
\def\tipbar#1{\ensuremath{|}}
\def\tipmail#1#2{\(\langle\){\small\expandafter\url{#1@#2}}\(\rangle\)}
\ifx\pdfoutput\undefined
\newcommand{\tipimage}[2]{\typeout{Make sure you download #1.eps}\ifthenelse{\lengthtest{0.8\textwidth>#2}\and\lengthtest{0pt<#2}}{\includegraphics{#1.eps}}{\includegraphics[width=0.8\textwidth]{#1.eps}}}
\newcommand{\tipxref}[1]{}
\newcommand{\tipxrefend}{}
\else
\newcommand{\tipimage}[2]{\typeout{Make sure you create #1.pdf}\ifthenelse{\lengthtest{0.8\textwidth>#2}\and\lengthtest{0pt<#2}}{\includegraphics{#1.pdf}}{\includegraphics[width=0.8\textwidth]{#1.pdf}}}
\pdfcatalog{/PageMode /UseOutlines}
\newcommand{\tipxref}[1]{\pdfannotlink attr {/C [0.5 0.5 1.0] /Border [0 0 1]} goto name {#1}}
\newcommand{\tipxrefend}{\pdfendlink}
\fi
\newenvironment{tipabstract}{\begin{abstract}}{\end{abstract}}
\begin{document}\maketitle
\begin{center}\begin{tabularx}{\linewidth}{|r@{: }X|}\hline
\textbf{TIP \#163}&\textbf{A [dict merge] Subcommand}\\\hline
Author&

Joe English \tipmail{jenglish}{users.sourceforge.net}
\\
Created&Friday, \(\text{14}^{\text{th}}\) November 2003\\
Type&Project\\
Tcl Version&\(8.5\)\\
State&Final\\
Vote&Done\\
Version&\tipversion$Revision: 1.4 $\\
Post History&\\
\hline\end{tabularx}\end{center}
\thispagestyle{empty}\pagestyle{empty}
\begin{tipabstract}

This TIP proposes a new [dict] subcommand which is used to combine multiple dictionaries.
\end{tipabstract}
\tableofcontents\setcounter{page}{0}\clearpage\pagestyle{plain}

\section{Specification}
\begingroup\small\begin{verbatim}
	dict merge ''dictVal1'' ''dictVal2'' ''...'' ''dictValN''
\end{verbatim}
\endgroup

Returns a new dictionary containing all the key/value pairs in \textit{dictVal1} through \textit{dictValN}. In the case of duplicate keys, values from later arguments override those from earlier ones.

\section{Implementation}

See SF Patch \#745851 \url{http://sourceforge.net/support/tracker.php?aid=745851}

\section{Examples}

See the EXAMPLES section of return(n), which currently reads:
\begingroup\small\begin{verbatim}
 set options [eval [list dict create -level 1] $args]
\end{verbatim}
\endgroup

This could be replaced with
\begingroup\small\begin{verbatim}
 set options [dict merge {-level 1} $args]
\end{verbatim}
\endgroup

\section{Notes}

This feature was suggested during the discussion of \cite{tip111}, but since the vote was already in progress it was not considered at that time.

\section{Copyright}

This document has been placed in the public domain.

\section{Colophon}

\textit{TIP AutoGenerator --- written by Donal K. Fellows}
\begin{thebibliography}{TIP \#1}
\addcontentsline{toc}{section}{References}
\bibitem[TIP \#111]{tip111}
Donal K. Fellows,
David S. Cargo,
\emph{Dictionary Values and Manipulators},
on-line at \url{http://purl.org/tcl/tip/111.html}
\end{thebibliography}
\end{document}
