summaryrefslogtreecommitdiff
path: root/main.tex
diff options
context:
space:
mode:
authorChloe Brown <chloe.brown.00@outlook.com>2025-04-24 14:13:48 +0100
committerChloe Brown <chloe.brown.00@outlook.com>2025-04-24 14:13:48 +0100
commitc639f719734d4ea6d7f5d2661626f0490a1de19c (patch)
treec20ada7f0ec6d68d42d14a4c33d528579706fbc4 /main.tex
parent1fd772839e9336310155eb39be3698032996f7f4 (diff)
Describe distrib.
Diffstat (limited to 'main.tex')
-rw-r--r--main.tex6
1 files changed, 5 insertions, 1 deletions
diff --git a/main.tex b/main.tex
index 4fedbac..f5743b9 100644
--- a/main.tex
+++ b/main.tex
@@ -245,7 +245,10 @@
\newcommand\arb{\ensuremath{\mathsf{arb}}}
%% Recursive types
-\newcommand\roll{\ensuremath{\mathsf{roll}}}
+\ExplSyntaxOn
+\NewDocumentCommand \roll {s}
+ { \ensuremath{\mathsf{roll} \IfBooleanT{#1}{'}} }
+\ExplSyntaxOff
\newcommand\unroll{\ensuremath{\mathsf{unroll}}}
\newcommand\foldkw{\ensuremath{\mathsf{fold}}}
\newcommand\foldtm[3]{\foldkw~{#1}~\mathsf{with}~{{#2}.~{#3}}}
@@ -331,6 +334,7 @@
{ {#1} [ \squid_checksub [] #2
}
\ExplSyntaxOff
+\newcommand\submult[2]{{#1}[ {#2} ]}
%% Document %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%