Skip to content

Commit 83bc735

Browse files
committed
Rebase
1 parent b01a798 commit 83bc735

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
@@ -194,6 +194,22 @@
194194
\newcommand{\PairList}[4]{\ensuremath{%
195195
{#1}_{#3}\ {#2}_{#3},\,\ldots,\ {#1}_{#4}\ {#2}_{#4}}}
196196

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

0 commit comments

Comments
 (0)