slides/slides02.tex
changeset 363 e5c1d69cffa4
parent 362 1bde878ba6c9
child 365 fc118ee0fce4
equal deleted inserted replaced
362:1bde878ba6c9 363:e5c1d69cffa4
    77 
    77 
    78 
    78 
    79 % \end{frame}
    79 % \end{frame}
    80 
    80 
    81 
    81 
    82 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
    82 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
    83 % \begin{frame}[t]
    83 \begin{frame}[t]
    84 % \frametitle{For-Comprehensions}
    84 \frametitle{For-Comprehensions}
    85 
    85 
    86 % \begin{center}
    86 \begin{center}
    87 %   \begin{tikzpicture}[scale=1,
    87   \begin{tikzpicture}[scale=1,
    88 %                       node/.style={
    88                       node/.style={
    89 %                       rectangle,rounded corners=3mm,
    89                       rectangle,rounded corners=3mm,
    90 %                       very thick,draw=black!50,
    90                       very thick,draw=black!50,
    91 %                       minimum height=18mm, minimum width=20mm,
    91                       minimum height=18mm, minimum width=20mm,
    92 %                       top color=white,bottom color=black!20}]
    92                       top color=white,bottom color=black!20}]
    93 
    93 
    94 %   \node (A0) at (0.1,0) {\texttt{\textcolor{purple}{\textbf{for}} (\alert<2->{n} <- List(}};
    94   \node (A0) at (0.1,0) {\texttt{\textcolor{purple}{\textbf{for}} (\alert<2->{n} <- List(}};
    95 %   \node (A1) at (2.3,0) {\texttt{\phantom{,}1,}};
    95   \node (A1) at (2.3,0) {\texttt{\phantom{,}1,}};
    96 %   \node (A2) at (3.2,0) {\texttt{\phantom{,}2,}};
    96   \node (A2) at (3.2,0) {\texttt{\phantom{,}2,}};
    97 %   \node (A3) at (4.1,0) {\texttt{\phantom{,}3,}};
    97   \node (A3) at (4.1,0) {\texttt{\phantom{,}3,}};
    98 %   \node (A4) at (5.0,0) {\texttt{\phantom{,}4,}};
    98   \node (A4) at (5.0,0) {\texttt{\phantom{,}4,}};
    99 %   \node (A5) at (5.9,0) {\texttt{\phantom{))}5))}};
    99   \node (A5) at (5.9,0) {\texttt{\phantom{))}5))}};
   100 %   \node (A6) at (8,0) {\texttt{\textcolor{purple}{\textbf{yield}} \alert<2->{n\,*\,n}}};
   100   \node (A6) at (8,0) {\texttt{\textcolor{purple}{\textbf{yield}} \alert<2->{n\,*\,n}}};
   101 
   101 
   102 %   \onslide<2->{
   102   \onslide<2->{
   103 %   \node (B0) at (1.4,-3) {\texttt{List(}};
   103   \node (B0) at (1.4,-3) {\texttt{List(}};
   104 %   \node (B1) at (2.3,-3) {\texttt{\phantom{,}1,}};
   104   \node (B1) at (2.3,-3) {\texttt{\phantom{,}1,}};
   105 %   \node (B2) at (3.6,-3) {\texttt{\phantom{,}4,}};
   105   \node (B2) at (3.6,-3) {\texttt{\phantom{,}4,}};
   106 %   \node (B3) at (4.9,-3) {\texttt{\phantom{,}9,}};
   106   \node (B3) at (4.9,-3) {\texttt{\phantom{,}9,}};
   107 %   \node (B4) at (6.2,-3) {\texttt{\phantom{,}16,}};
   107   \node (B4) at (6.2,-3) {\texttt{\phantom{,}16,}};
   108 %   \node (B5) at (7.5,-3) {\texttt{\phantom{,}25)}};}
   108   \node (B5) at (7.5,-3) {\texttt{\phantom{,}25)}};}
   109 
   109 
   110 %   \onslide<2->{
   110   \onslide<2->{
   111 %   \draw [->,line width=1mm] (A1.south) -- (B1.north);
   111   \draw [->,line width=1mm] (A1.south) -- (B1.north);
   112 %   \draw [->,line width=1mm] (A2.south) -- (B2.north);
   112   \draw [->,line width=1mm] (A2.south) -- (B2.north);
   113 %   \draw [->,line width=1mm] (A3.south) -- (B3.north);
   113   \draw [->,line width=1mm] (A3.south) -- (B3.north);
   114 %   \draw [->,line width=1mm] (A4.south) -- (B4.north);
   114   \draw [->,line width=1mm] (A4.south) -- (B4.north);
   115 %   \draw [->,line width=1mm] (A5.south) -- (B5.north);}
   115   \draw [->,line width=1mm] (A5.south) -- (B5.north);}
   116 
   116 
   117 %   \onslide<2->{
   117   \onslide<2->{
   118 %   \node (Q1) at (-0.45,-0.1) {};
   118   \node (Q1) at (-0.45,-0.1) {};
   119 %   \node (Q2) at (-0.45,-2.8) {};
   119   \node (Q2) at (-0.45,-2.8) {};
   120 %   \node (Q3) at (-0.45,-2.95) {\alert<2->{\texttt{n\,*\,n:}}};
   120   \node (Q3) at (-0.45,-2.95) {\alert<2->{\texttt{n\,*\,n:}}};
   121 %   \draw [->,red,line width=1mm] (Q1.south) -- (Q2.north);}
   121   \draw [->,red,line width=1mm] (Q1.south) -- (Q2.north);}
   122 %  \end{tikzpicture}
   122  \end{tikzpicture}
   123 % \end{center}
   123 \end{center}
   124 
   124 
   125 % \onslide<3>{This is for when the for-comprehension\\ \textbf{yields / produces} a result.}
   125 \onslide<3>{This is for when the for-comprehension\\ \textbf{yields / produces} a result.}
   126 
   126 
   127 % \end{frame}
   127 \end{frame}
   128 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   128 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   129 
   129 
   130 
   130 
   131 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
   131 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
   132 % \begin{frame}[t]
   132 % \begin{frame}[t]
   133 % \frametitle{For-Comprehensions Again}
   133 % \frametitle{For-Comprehensions Again}
   527         child {node {$[0,1]$}}
   527         child {node {$[0,1]$}}
   528      }
   528      }
   529      child {node {$[4,2,0,1]$\ldots}};
   529      child {node {$[4,2,0,1]$\ldots}};
   530 \end{tikzpicture}
   530 \end{tikzpicture}
   531 \end{center}
   531 \end{center}
   532 
   532 \end{frame}
   533 
   533 
   534 
   534 \begin{frame}<1-10>[t]
   535 \end{frame}
   535   
       
   536 \end{frame}
       
   537 
   536 
   538 
   537 
   539 
   538 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   540 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   539 
   541 
   540 \end{document}
   542 \end{document}