haskell-lectures/VL2/VL2_handout.tex

147 lines
3.0 KiB
TeX

\documentclass[12pt,a4paper,fleqn,oneside]{article}
% packages
\usepackage{xcolor}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{hyperref}
\usepackage{listings}
\usepackage{minted}
% for \verb inside \item
\usepackage[T1]{fontenc}
\usepackage[Q=yes]{examplep}
% package configuration
\DeclareGraphicsExtensions{.pdf,.png,.jpg}
\usemintedstyle{friendly}
\newminted{haskell}{frame=single,numbers=left,samepage=true}
\newminted{cpp}{frame=single,numbers=left}
\newminted{c}{frame=single,numbers=left}
\renewcommand{\theFancyVerbLine}{\ttfamily
\textcolor[rgb]{0.0,0.0,0.0}{\footnotesize
\oldstylenums{\arabic{FancyVerbLine}}}}
% macros and environments
\newcommand{\code}[1]{\texttt{#1}}
\newcommand{\pause}{}
\newcommand{\slidep}{}
\newenvironment{itemizep}
{\begin{itemize}}
{\end{itemize}}
% color definition
\definecolor{solarized}{HTML}{002B36}
\definecolor{mygreen}{rgb}{0,0.6,0}
\begin{document}
% title page information
\author{Julian Ospald}
\title{Haskell: higher order functions}
\maketitle
\tableofcontents
\section{Reiteration}
\input{./content/VL2_reiteration.tex}
\section{Polymorphism}
\input{./content/VL2_polymorphism1.tex}
\input{./content/VL2_polymorphism2.tex}
\input{./content/VL2_polymorphism3.tex}
\section{More ways to define functions}
\input{./content/VL2_define_functions1.tex}
\subsection{Where}
\input{./content/VL2_define_functions2.tex}
\subsection{Let}
\input{./content/VL2_define_functions3.tex}
\subsection{Let vs Where}
\input{./content/VL2_define_functions4.tex}
\subsection{Anonymous functions}
\input{./content/VL2_define_functions5.tex}
\section{Currying}
\input{./content/VL2_currying1.tex}
\\\\
\input{./content/VL2_currying2.tex}
\\\\
\input{./content/VL2_currying3.tex}
\\\\
\input{./content/VL2_currying4.tex}
\\\\
\input{./content/VL2_currying5.tex}
\\\\
\input{./content/VL2_currying6.tex}
\input{./content/VL2_currying7.tex}
\input{./content/VL2_currying8.tex}
\section{Function composition}
\input{./content/VL2_composition1.tex}
\input{./content/VL2_composition2.tex}
\input{./content/VL2_composition3.tex}
\section{Recursion patterns}
\input{./content/VL2_rec_patterns1.tex}
\subsection{Map}
\input{./content/VL2_rec_patterns2.tex}
\input{./content/VL2_rec_patterns3.tex}
\\\\
\input{./content/VL2_rec_patterns4.tex}
\\\\
\input{./content/VL2_rec_patterns5.tex}
\subsection{Filter}
\input{./content/VL2_rec_patterns6.tex}
\\\\
\input{./content/VL2_rec_patterns7.tex}
\subsection{Fold}
\input{./content/VL2_rec_patterns8.tex}
\input{./content/VL2_rec_patterns9.tex}
\\\\
\input{./content/VL2_rec_patterns10.tex}
\input{./content/VL2_rec_patterns11.tex}
\subsection{Summary}
\input{./content/VL2_rec_patterns12.tex}
\section{Reflection}
\subsection{What you should know}
\input{./content/VL2_reflection1.tex}
\subsection{Questions for you}
\input{./content/VL2_reflection2.tex}
\section{References}
\subsection{Links}
\input{../common/content/VL_links.tex}
\subsection{Sources}
\input{../common/content/VL_sources.tex}
\end{document}