Commit 840ba21e by Mark Cohen

presentation: correction to for syntax, add predicated typing for for!

parent 146aa5b2
Showing with 14 additions and 3 deletions
No preview for this file type
......@@ -49,8 +49,8 @@
% show slide numbers
\setbeamertemplate{footline}[frame number]
% \setbeameroption{hide notes}
\setbeameroption{show notes}
\setbeameroption{hide notes}
% \setbeameroption{show notes}
% \setbeameroption{show only notes}
\begin{document}
......@@ -1203,7 +1203,7 @@ let
of Some item' => for rest (insert $\iota$ item') expr
| None => for rest $\iota$ expr
in
for <var> <collection> default (fn <var> => <expr>)
for <collection> default (fn <var> => <expr>)
end
\end{lstlisting}
\end{frame}
......@@ -1237,6 +1237,17 @@ end
\end{frame}
\begin{frame}{Iteration: big payoff!}
\begin{align*}
\tt{for} :: \forall \gamma . \forall iota .&\\
&(\tt{item} :: \gamma \bs \tt{item}_\gamma) .\\
&(\tt{item} :: \iota \bs \tt{item}_\iota) .\\
&(\tt{next} ::_i \gamma \arrow (\tt{item}_\gamma * \gamma) \tt{ option} \bs \tt{next}_\gamma) .\\
&(\tt{insert} ::_i \iota \arrow \tt{item}_\iota \arrow \iota) .\\
&\gamma \arrow \iota \arrow (\tt{item}_\gamma \arrow \tt{item}_\iota) \arrow \iota
\end{align*}
\end{frame}
\begin{frame}{}
\begin{center}
\Large Thank you!
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment