# HG changeset patch # User Christian Urban # Date 1765456443 0 # Node ID b84e794b9e88c36cc021f5e1b9c3a702c59acdb0 # Parent c479d6ef57f8a85571a4993f7e5c32865b257021 updated diff -r c479d6ef57f8 -r b84e794b9e88 progs/fun/funt.sc --- a/progs/fun/funt.sc Thu Dec 04 21:33:25 2025 +0000 +++ b/progs/fun/funt.sc Thu Dec 11 12:34:03 2025 +0000 @@ -16,6 +16,14 @@ // the first prints out the JVM instructions // the second runs the generated class files +def powerset(xs: Set[Int]) : Set[Set[Int]] = { + if (xs == Set()) Set(Set()) + else { val subs = powerset(xs.tail) + subs ++ subs.map(_ + xs.head) + } +} + +powerset(Set(1,2,3)) import $file.fun_tokens, fun_tokens._ import $file.fun_parser, fun_parser._ diff -r c479d6ef57f8 -r b84e794b9e88 slides/slides10.pdf Binary file slides/slides10.pdf has changed diff -r c479d6ef57f8 -r b84e794b9e88 slides/slides10.tex --- a/slides/slides10.tex Thu Dec 04 21:33:25 2025 +0000 +++ b/slides/slides10.tex Thu Dec 11 12:34:03 2025 +0000 @@ -52,11 +52,11 @@ \begin{center} \begin{tabular}{ll} Email: & christian.urban at kcl.ac.uk\\ + & I will try to stay on top of my inbox during Christmas\medskip\\ %%Office Hour: & Thurdays 15 -- 16\\ %%Location: & N7.07 (North Wing, Bush House)\\ Slides \& Progs: & KEATS\\ - Emails: & I will try to stay on top of my inbox during Christmas\medskip\\ - Pollev: & \texttt{\alert{https://pollev.com/cfltutoratki576}}\\ + %%Pollev: & \texttt{\alert{https://pollev.com/cfltutoratki576}}\\ \end{tabular} \end{center} @@ -77,6 +77,30 @@ \end{frame} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\begin{frame}[c] +\frametitle{Exam} + +\begin{itemize} +\item sometimes in January +\item 2hs / 23 questions +\item questions taken from HWs with scant changes +\item all but one are text questions (one is true/false) + +\end{itemize} +\end{frame} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\begin{frame}[t] +\end{frame} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\begin{frame}[t] +\end{frame} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\begin{frame}[t] +\end{frame} + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \tikzstyle{sensor}=[draw, fill=blue!20, text width=3.8em, line width=1mm, text centered, minimum height=2em,drop shadow] @@ -920,21 +944,38 @@ \only<1>{% \begin{itemize} -\item<-1> It is always fun to learn new things in CFL -\item<-1> I want to add Higher-Order Functions and Algebraic Datatypes - to Fun +\item<1> It is always fun to learn new things in CFL +\item<1> I want to add Higher-Order Functions and Algebraic Datatypes to Fun (typing is a distant dream unfortunately) + \end{itemize}} -\only<2->{% +\hfill\includegraphics[scale=0.12]{thanks.png} +\end{frame} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\begin{frame}[c] +\frametitle{Big Thank You!} +\large + \begin{itemize} -\item<2-> Thanks for ALL the EoY feedback:\medskip\bigskip +\item Thanks for ALL the EoY feedback:\medskip\bigskip +\end{itemize} + +\only<2>{ \begin{minipage}{13cm} \begin{quote}\it ``If all modules were as good as this one I would start recommending KCL over basically every single university instead of suggesting people look somewhere else.'' \end{quote} -\end{minipage} -\end{itemize}} +\end{minipage}} + +\only<3>{ +\begin{minipage}{13cm} +\begin{quote}\it +``Overall, CFL was without a doubt the most interesting subject I have taken\ldots'' +\end{quote} +\end{minipage}} + \hfill\includegraphics[scale=0.12]{thanks.png} diff -r c479d6ef57f8 -r b84e794b9e88 slides/thanks.png Binary file slides/thanks.png has changed