Skip to content

Commit bb3d176

Browse files
committed
Rebase
1 parent 0939714 commit bb3d176

File tree

2 files changed

+131
-96
lines changed

2 files changed

+131
-96
lines changed

specification/dart.sty

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,22 @@
193193
\newcommand{\PairList}[4]{\ensuremath{%
194194
{#1}_{#3}\ {#2}_{#3},\,\ldots,\ {#1}_{#4}\ {#2}_{#4}}}
195195

196+
% Used to specify named arguments.
197+
% Parameters: Parameter name, argument name, index at start, index at end.
198+
\newcommand{\NamedArgumentList}[4]{\PairList{#1}{\!\!:\,\,{#2}}{#3}{#4}}
199+
200+
% Used to specify an argument list including positional and named arguments.
201+
% Parameters: Argument name, number of positional arguments, named parameter
202+
% name, number of named arguments.
203+
\newcommand{\ArgumentList}[4]{%
204+
\List{#1}{1}{#2},\ \NamedArgumentList{#3}{#1}{{#2}+1}{{#2}+{#4}}}
205+
206+
% Used to specify a standard argument list.
207+
\newcommand{\ArgumentListStd}{\ArgumentList{a}{n}{x}{k}}
208+
209+
% Used to specify a standard type argument list.
210+
\newcommand{\TypeArgumentListStd}{\List{A}{1}{r}}
211+
196212
% Used to specify a list of tuples of the form $(K_j, V_j)$ which are
197213
% used with collection literals.
198214
\newcommand{\KeyValueTypeList}[4]{\ensuremath{%

0 commit comments

Comments
 (0)