handouts/pep-ho.tex
changeset 274 8980686aa2e8
parent 273 b19227660752
child 275 eb1b4ad23941
equal deleted inserted replaced
273:b19227660752 274:8980686aa2e8
    36 
    36 
    37 
    37 
    38 %explain graph coloring program (examples from)
    38 %explain graph coloring program (examples from)
    39 %https://www.metalevel.at/prolog/optimization
    39 %https://www.metalevel.at/prolog/optimization
    40 
    40 
    41 
       
    42 % nice example for map and reduce using Harry potter characters
    41 % nice example for map and reduce using Harry potter characters
    43 % https://www.matthewgerstman.com/map-filter-reduce/
    42 % https://www.matthewgerstman.com/map-filter-reduce/
    44 
    43 
    45 
    44 
    46 \begin{document}
    45 \begin{document}
    49 \section*{A Crash-Course in Scala}
    48 \section*{A Crash-Course in Scala}
    50 
    49 
    51 \mbox{}\hfill\textit{``Scala --- \underline{S}lowly \underline{c}ompiled 
    50 \mbox{}\hfill\textit{``Scala --- \underline{S}lowly \underline{c}ompiled 
    52 \underline{a}cademic \underline{la}nguage''}\smallskip\\
    51 \underline{a}cademic \underline{la}nguage''}\smallskip\\
    53 \mbox{}\hfill\textit{ --- a joke(?) found on Twitter}\bigskip
    52 \mbox{}\hfill\textit{ --- a joke(?) found on Twitter}\bigskip
    54 
       
    55 
    53 
    56 \subsection*{Introduction}
    54 \subsection*{Introduction}
    57 
    55 
    58 \noindent
    56 \noindent
    59 Scala is a programming language that combines functional and
    57 Scala is a programming language that combines functional and
   981 recursive function for this.
   979 recursive function for this.
   982 
   980 
   983 
   981 
   984 \subsection*{Higher-Order Functions}
   982 \subsection*{Higher-Order Functions}
   985 
   983 
       
   984 TBD
       
   985 
   986 \subsection*{Types}
   986 \subsection*{Types}
   987 
   987 
   988 In most functional programming languages, types play an
   988 In most functional programming languages, types play an
   989 important role. Scala is such a language. You have already
   989 important role. Scala is such a language. You have already
   990 seen built-in types, like \code{Int}, \code{Boolean},
   990 seen built-in types, like \code{Int}, \code{Boolean},