Commit 67703dbf authored by Gautham Velchuru's avatar Gautham Velchuru
Browse files

more ruby and shit

parent 19a5d703
\begin{Verbatim}[commandchars=\\\{\}]
\PYG{k}{def} \PYG{n+nf}{append}\PYG{p}{(}\PYG{n+nb}{p}\PYG{p}{)}
\PYG{n}{a} \PYG{o}{\PYGZlt{}\PYGZlt{}} \PYG{n+nb}{p}
\PYG{n}{a}\PYG{o}{.}\PYG{n}{push}\PYG{p}{(}\PYG{n+nb}{p}\PYG{p}{)} \PYG{c+c1}{\PYGZsh{} this is also an option}
\PYG{k}{end}
\end{Verbatim}
\begin{Verbatim}[commandchars=\\\{\}]
\PYG{n+nf}{positives}\PYG{p}{(}\PYG{n+nv}{A}\PYG{p}{,} \PYG{p}{[]).}
\PYG{n+nv}{A} \PYG{o}{=} \PYG{p}{[]}
\PYG{n+nv}{A} \PYG{o}{=} \PYG{p}{[}\PYG{k}{\PYGZus{}}\PYG{l+s+sAtom}{t1}\PYG{p}{]}
\PYG{k}{\PYGZus{}}\PYG{l+s+sAtom}{t1} \PYG{l+s+sAtom}{\PYGZlt{}=} \PYG{l+m+mi}{0}
\PYG{n+nv}{A} \PYG{o}{=} \PYG{p}{[}\PYG{k}{\PYGZus{}}\PYG{l+s+sAtom}{t1}\PYG{p}{,} \PYG{k}{\PYGZus{}}\PYG{l+s+sAtom}{t2}\PYG{p}{]}
\PYG{k}{\PYGZus{}}\PYG{l+s+sAtom}{t1} \PYG{l+s+sAtom}{\PYGZlt{}=} \PYG{l+m+mi}{0}
\PYG{k}{\PYGZus{}}\PYG{l+s+sAtom}{t2} \PYG{l+s+sAtom}{\PYGZlt{}=} \PYG{l+m+mi}{0}
\end{Verbatim}
\begin{Verbatim}[commandchars=\\\{\}]
\PYG{k+kd}{public} \PYG{k+kd}{static} \PYG{k+kt}{void} \PYG{n+nf}{test}\PYG{o}{(}\PYG{n}{LinkedList}\PYG{o}{\PYGZlt{}}\PYG{n}{Object}\PYG{o}{\PYGZgt{}} \PYG{n}{c}\PYG{o}{,} \PYG{k+kt}{int} \PYG{n}{i}\PYG{o}{)} \PYG{o}{\PYGZob{}}
\PYG{n}{c}\PYG{o}{.}\PYG{n+na}{add}\PYG{o}{(}\PYG{n}{i}\PYG{o}{,}\PYG{l+s}{\PYGZdq{}clam\PYGZdq{}}\PYG{o}{);}
\PYG{o}{\PYGZcb{}}
\PYG{k+kd}{public} \PYG{k+kd}{static} \PYG{k+kt}{void} \PYG{n+nf}{test}\PYG{o}{(}\PYG{n}{LinkedList}\PYG{o}{\PYGZlt{}}\PYG{n}{String}\PYG{o}{\PYGZgt{}} \PYG{n}{c}\PYG{o}{,} \PYG{k+kt}{int} \PYG{n}{i}\PYG{o}{)} \PYG{o}{\PYGZob{}}
\PYG{n}{c}\PYG{o}{.}\PYG{n+na}{add}\PYG{o}{(}\PYG{n}{i}\PYG{o}{,}\PYG{l+s}{\PYGZdq{}clam\PYGZdq{}}\PYG{o}{);}
\PYG{o}{\PYGZcb{}}
\end{Verbatim}
\begin{Verbatim}[commandchars=\\\{\}]
\PYG{l+m+mi}{5}\PYG{o}{.}\PYG{n}{times} \PYG{k}{do} \PYG{o}{|}\PYG{n}{i}\PYG{o}{|}
\PYG{n+nb}{print} \PYG{n}{i}\PYG{p}{,} \PYG{l+s+s2}{\PYGZdq{} \PYGZdq{}}
\PYG{k}{end}
\end{Verbatim}
\begin{Verbatim}[commandchars=\\\{\}]
\PYG{n+nf}{twice}\PYG{p}{([}\PYG{n+nv}{X}\PYG{p}{,}\PYG{n+nv}{X}\PYG{p}{|}\PYG{n+nv}{Xs}\PYG{p}{],}\PYG{n+nv}{X}\PYG{p}{).}
\PYG{n+nf}{twice}\PYG{p}{([}\PYG{n+nv}{X}\PYG{p}{|}\PYG{n+nv}{Xs}\PYG{p}{],}\PYG{n+nv}{Y}\PYG{p}{)} \PYG{p}{:\PYGZhy{}} \PYG{n+nf}{twice}\PYG{p}{(}\PYG{n+nv}{Xs}\PYG{p}{,}\PYG{n+nv}{Y}\PYG{p}{).}
\PYG{n+nf}{twice}\PYG{p}{(}\PYG{n+nv}{As}\PYG{p}{,} \PYG{l+m+mi}{1}\PYG{p}{).}
\PYG{n+nv}{As} \PYG{o}{=} \PYG{p}{[}\PYG{l+m+mi}{1}\PYG{p}{,} \PYG{l+m+mi}{1}\PYG{p}{|}\PYG{n+nv}{X1}\PYG{p}{];}
\PYG{n+nv}{As} \PYG{o}{=} \PYG{p}{[}\PYG{n+nv}{X1}\PYG{p}{,} \PYG{l+m+mi}{1}\PYG{p}{,} \PYG{l+m+mi}{1}\PYG{p}{|}\PYG{n+nv}{X2}\PYG{p}{];}
\PYG{n+nv}{As} \PYG{o}{=} \PYG{p}{[}\PYG{n+nv}{X1}\PYG{p}{,} \PYG{n+nv}{X2}\PYG{p}{,} \PYG{l+m+mi}{1}\PYG{p}{|}\PYG{n+nv}{X3}\PYG{p}{];}
\end{Verbatim}
\begin{Verbatim}[commandchars=\\\{\}]
\PYG{n}{until\PYGZus{}false} \PYG{n}{f} \PYG{k+kt}{[]} \PYG{o+ow}{=} \PYG{k+kt}{[]}
\PYG{n}{until\PYGZus{}false} \PYG{n}{f} \PYG{p}{(}\PYG{n}{x}\PYG{k+kt}{:}\PYG{n}{xs}\PYG{p}{)} \PYG{o}{|} \PYG{n}{f} \PYG{n}{x} \PYG{o+ow}{=} \PYG{n}{x} \PYG{k+kt}{:} \PYG{n}{until\PYGZus{}false} \PYG{n}{f} \PYG{n}{xs}
\PYG{o}{|} \PYG{n}{otherwise} \PYG{o+ow}{=} \PYG{k+kt}{[]}
\end{Verbatim}
\begin{Verbatim}[commandchars=\\\{\}]
\PYG{k}{class} \PYG{n+nc}{MyArrContainer}
\PYG{k+kp}{include} \PYG{n+no}{Enumerable}
\PYG{k}{def} \PYG{n+nf}{initialize}
\PYG{n+nv+vi}{@arr} \PYG{o}{=} \PYG{o}{[]}
\PYG{k}{end}
\PYG{k}{def} \PYG{n+nf}{each}\PYG{p}{(}\PYG{o}{\PYGZam{}}\PYG{n}{blk}\PYG{p}{)}
\PYG{n+nv+vi}{@arr}\PYG{o}{.}\PYG{n}{each}\PYG{p}{(}\PYG{o}{\PYGZam{}}\PYG{n}{blk}\PYG{p}{)} \PYG{c+c1}{\PYGZsh{}Reference to block}
\PYG{k}{end}
\PYG{k}{end}
\PYG{p}{\PYGZbs{}}\PYG{n}{subsection}\PYG{p}{\PYGZob{}}\PYG{n+no}{Other} \PYG{n}{semi}\PYG{o}{\PYGZhy{}}\PYG{n}{important} \PYG{n}{things}\PYG{p}{\PYGZcb{}}
\PYG{p}{\PYGZbs{}}\PYG{k}{begin}\PYG{p}{\PYGZob{}}\PYG{n}{itemize}\PYG{p}{\PYGZcb{}}
\PYG{p}{\PYGZbs{}}\PYG{n}{item} \PYG{n+no}{Enumerable} \PYG{k}{class} \PYG{n}{contains} \PYG{n}{min}\PYG{p}{,} \PYG{n}{max} \PYG{n}{as} \PYG{n}{an} \PYG{n}{attribute}
\PYG{p}{\PYGZbs{}}\PYG{n}{item} \PYG{n+no}{Hash} \PYG{n}{can} \PYG{n}{be} \PYG{n}{instantiated} \PYG{n}{with} \PYG{n}{a} \PYG{n}{default} \PYG{n}{parameter}
\PYG{p}{\PYGZbs{}}\PYG{n}{item} \PYG{n+no}{Arrays} \PYG{n}{use} \PYG{o}{.}\PYG{n}{include?}\PYG{p}{,} \PYG{n+no}{Hashes} \PYG{n}{use} \PYG{o}{.}\PYG{n}{member?}
\PYG{p}{\PYGZbs{}}\PYG{n}{item} \PYG{n+no}{Instead} \PYG{n}{of} \PYG{n}{a} \PYG{k}{for} \PYG{k+kp}{loop}\PYG{p}{,} \PYG{n}{you} \PYG{n}{can} \PYG{k}{do} \PYG{n}{the} \PYG{l+s+ss}{following}\PYG{p}{:}
\PYG{p}{\PYGZbs{}}\PYG{k}{begin}\PYG{p}{\PYGZob{}}\PYG{n}{minted}\PYG{p}{\PYGZcb{}\PYGZob{}}\PYG{n}{ruby}\PYG{p}{\PYGZcb{}}
\PYG{l+m+mi}{5}\PYG{o}{.}\PYG{n}{times} \PYG{k}{do} \PYG{o}{|}\PYG{n}{i}\PYG{o}{|}
\PYG{n+nb}{print} \PYG{n}{i}\PYG{p}{,} \PYG{l+s+s2}{\PYGZdq{} \PYGZdq{}}
\PYG{k}{end}
\end{Verbatim}
\begin{Verbatim}[commandchars=\\\{\}]
\PYG{n+nf}{positives}\PYG{p}{([],[]).}
\PYG{n+nf}{positives}\PYG{p}{([}\PYG{n+nv}{X}\PYG{p}{|}\PYG{n+nv}{Xs}\PYG{p}{],[}\PYG{n+nv}{X}\PYG{p}{|}\PYG{n+nv}{Ys}\PYG{p}{])} \PYG{p}{:\PYGZhy{}} \PYG{n+nv}{X}\PYG{o}{\PYGZgt{}}\PYG{l+m+mi}{0}\PYG{p}{,} \PYG{n+nf}{positives}\PYG{p}{(}\PYG{n+nv}{Xs}\PYG{p}{,}\PYG{n+nv}{Ys}\PYG{p}{).}
\PYG{n+nf}{positives}\PYG{p}{([}\PYG{n+nv}{X}\PYG{p}{|}\PYG{n+nv}{Xs}\PYG{p}{],}\PYG{n+nv}{Ys}\PYG{p}{)} \PYG{p}{:\PYGZhy{}} \PYG{n+nv}{X}\PYG{l+s+sAtom}{\PYGZlt{}=}\PYG{l+m+mi}{0}\PYG{p}{,} \PYG{n+nf}{positives}\PYG{p}{(}\PYG{n+nv}{Xs}\PYG{p}{,}\PYG{n+nv}{Ys}\PYG{p}{).}
\end{Verbatim}
......@@ -23,54 +23,60 @@
\@writefile{toc}{\contentsline {subsection}{\numberline {3.2}Multiple answers}{4}}
\@writefile{toc}{\contentsline {subsection}{\numberline {3.3}clpfd}{5}}
\@writefile{toc}{\contentsline {subsection}{\numberline {3.4}clpr, more advanced list rule}{5}}
\@writefile{toc}{\contentsline {section}{\numberline {4}Ruby}{5}}
\@writefile{toc}{\contentsline {subsection}{\numberline {4.1}Pure OOP}{5}}
\@writefile{toc}{\contentsline {subsection}{\numberline {4.2}Duck Typing}{5}}
\@writefile{toc}{\contentsline {subsection}{\numberline {4.3}Intance-Specific methods/singleton classes}{5}}
\@writefile{toc}{\contentsline {subsection}{\numberline {3.5}clpr, positives}{5}}
\@writefile{toc}{\contentsline {section}{\numberline {4}Ruby}{6}}
\@writefile{toc}{\contentsline {subsection}{\numberline {4.1}Pure OOP}{6}}
\@writefile{toc}{\contentsline {subsection}{\numberline {4.2}Duck Typing}{6}}
\@writefile{toc}{\contentsline {subsection}{\numberline {4.3}Intance-Specific methods/singleton classes}{6}}
\@writefile{toc}{\contentsline {subsection}{\numberline {4.4}Syntactic Sugar}{6}}
\@writefile{toc}{\contentsline {subsection}{\numberline {4.5}Example using class variables, overriding, and hashes}{6}}
\@writefile{toc}{\contentsline {subsection}{\numberline {4.6}Blocks, procs, lambdas}{6}}
\@writefile{toc}{\contentsline {subsection}{\numberline {4.5}Example using class variables, overriding, and hashes}{7}}
\@writefile{toc}{\contentsline {subsection}{\numberline {4.6}Blocks, procs, lambdas}{7}}
\@writefile{toc}{\contentsline {subsection}{\numberline {4.7}Inheritance}{7}}
\@writefile{toc}{\contentsline {subsection}{\numberline {4.8}Other semi-important things}{8}}
\@writefile{toc}{\contentsline {subsection}{\numberline {4.9}Reflection}{8}}
\@writefile{toc}{\contentsline {section}{\numberline {5}Haskell}{8}}
\@writefile{toc}{\contentsline {subsection}{\numberline {5.1}Functions}{8}}
\@writefile{toc}{\contentsline {subsection}{\numberline {5.2}Types}{8}}
\@writefile{toc}{\contentsline {subsection}{\numberline {5.3}Referential transparency}{8}}
\@writefile{toc}{\contentsline {subsection}{\numberline {5.4}List comprehensions}{9}}
\@writefile{toc}{\contentsline {subsection}{\numberline {5.5}monads, I/O}{9}}
\@writefile{toc}{\contentsline {subsection}{\numberline {5.6}Call-By}{9}}
\@writefile{toc}{\contentsline {subsection}{\numberline {5.7}Static typing}{9}}
\@writefile{toc}{\contentsline {subsection}{\numberline {5.8}Let/Where}{10}}
\@writefile{toc}{\contentsline {section}{\numberline {6}Octopus}{10}}
\@writefile{toc}{\contentsline {section}{\numberline {7}Java}{10}}
\@writefile{toc}{\contentsline {subsection}{\numberline {7.1}Generics, subtyping, etc}{10}}
\@writefile{toc}{\contentsline {subsubsection}{\numberline {7.1.1}Arrays}{10}}
\@writefile{toc}{\contentsline {subsection}{\numberline {7.2}Wildcards}{11}}
\@writefile{toc}{\contentsline {section}{\numberline {8}Big Ideas}{11}}
\@writefile{toc}{\contentsline {subsection}{\numberline {8.1}Scope}{11}}
\@writefile{toc}{\contentsline {subsection}{\numberline {8.2}Static vs Dynamic Analysis}{12}}
\@writefile{toc}{\contentsline {subsection}{\numberline {8.3}Major programming language families}{12}}
\@writefile{toc}{\contentsline {subsection}{\numberline {8.4}Interaction of Languages and Style}{12}}
\@writefile{toc}{\contentsline {subsection}{\numberline {8.5}Objects and Encapsulation}{12}}
\@writefile{toc}{\contentsline {subsection}{\numberline {8.6}Purely Functional Languages vs State}{12}}
\@writefile{toc}{\contentsline {section}{\numberline {9}General Concepts}{12}}
\@writefile{toc}{\contentsline {subsection}{\numberline {9.1}Types}{12}}
\@writefile{toc}{\contentsline {subsubsection}{\numberline {9.1.1}Static vs Dynamic Typing}{12}}
\@writefile{toc}{\contentsline {subsubsection}{\numberline {9.1.2}Type Safety}{13}}
\@writefile{toc}{\contentsline {subsubsection}{\numberline {9.1.3}Type Inference}{13}}
\@writefile{toc}{\contentsline {subsection}{\numberline {9.2}Strongly typed languages}{13}}
\@writefile{toc}{\contentsline {subsection}{\numberline {9.3}Polymorphism}{13}}
\@writefile{toc}{\contentsline {subsection}{\numberline {9.4}Functional vs Imperative}{13}}
\@writefile{toc}{\contentsline {subsection}{\numberline {9.5}Higher-order functions}{13}}
\@writefile{toc}{\contentsline {subsection}{\numberline {9.6}Parameter Passing}{14}}
\@writefile{toc}{\contentsline {subsubsection}{\numberline {9.6.1}Call-By-Value}{14}}
\@writefile{toc}{\contentsline {subsubsection}{\numberline {9.6.2}Call-by-reference}{14}}
\@writefile{toc}{\contentsline {subsubsection}{\numberline {9.6.3}Call-by-name}{14}}
\@writefile{toc}{\contentsline {subsection}{\numberline {9.7}Lazy evaluation/thunks}{14}}
\@writefile{toc}{\contentsline {subsection}{\numberline {9.8}Overloading}{14}}
\@writefile{toc}{\contentsline {subsection}{\numberline {9.9}Coercion}{14}}
\@writefile{toc}{\contentsline {subsection}{\numberline {9.10}Closures}{14}}
\@writefile{toc}{\contentsline {subsection}{\numberline {4.8}Enumerable}{8}}
\@writefile{toc}{\contentsline {subsection}{\numberline {4.9}Reflection}{9}}
\@writefile{toc}{\contentsline {section}{\numberline {5}Haskell}{9}}
\@writefile{toc}{\contentsline {subsection}{\numberline {5.1}Functions}{9}}
\@writefile{toc}{\contentsline {subsection}{\numberline {5.2}Types}{9}}
\@writefile{toc}{\contentsline {subsection}{\numberline {5.3}Referential transparency}{9}}
\@writefile{toc}{\contentsline {subsection}{\numberline {5.4}Guards}{10}}
\@writefile{toc}{\contentsline {subsection}{\numberline {5.5}List comprehensions}{10}}
\@writefile{toc}{\contentsline {subsection}{\numberline {5.6}monads, I/O}{10}}
\@writefile{toc}{\contentsline {subsection}{\numberline {5.7}Call-By}{10}}
\@writefile{toc}{\contentsline {subsection}{\numberline {5.8}Static typing}{10}}
\@writefile{toc}{\contentsline {subsection}{\numberline {5.9}Let/Where}{11}}
\@writefile{toc}{\contentsline {section}{\numberline {6}Octopus}{11}}
\@writefile{toc}{\contentsline {section}{\numberline {7}Java}{11}}
\@writefile{toc}{\contentsline {subsection}{\numberline {7.1}Generics, subtyping, etc}{11}}
\@writefile{toc}{\contentsline {subsubsection}{\numberline {7.1.1}Arrays}{11}}
\@writefile{toc}{\contentsline {subsection}{\numberline {7.2}Wildcards}{12}}
\@writefile{toc}{\contentsline {section}{\numberline {8}Big Ideas}{13}}
\@writefile{toc}{\contentsline {subsection}{\numberline {8.1}Scope}{13}}
\@writefile{toc}{\contentsline {subsection}{\numberline {8.2}Static vs Dynamic Analysis}{13}}
\@writefile{toc}{\contentsline {subsection}{\numberline {8.3}Major programming language families}{13}}
\@writefile{toc}{\contentsline {subsection}{\numberline {8.4}Interaction of Languages and Style}{13}}
\@writefile{toc}{\contentsline {subsection}{\numberline {8.5}Objects and Encapsulation}{14}}
\@writefile{toc}{\contentsline {subsection}{\numberline {8.6}Purely Functional Languages vs State}{14}}
\@writefile{toc}{\contentsline {section}{\numberline {9}General Concepts}{14}}
\@writefile{toc}{\contentsline {subsection}{\numberline {9.1}Types}{14}}
\@writefile{toc}{\contentsline {subsubsection}{\numberline {9.1.1}Static vs Dynamic Typing}{14}}
\@writefile{toc}{\contentsline {subsubsection}{\numberline {9.1.2}Type Safety}{14}}
\@writefile{toc}{\contentsline {subsubsection}{\numberline {9.1.3}Type Inference}{14}}
\@writefile{toc}{\contentsline {subsection}{\numberline {9.2}Strongly typed languages}{14}}
\@writefile{toc}{\contentsline {subsection}{\numberline {9.3}Polymorphism}{14}}
\@writefile{toc}{\contentsline {subsection}{\numberline {9.4}Functional vs Imperative}{15}}
\@writefile{toc}{\contentsline {subsection}{\numberline {9.5}Higher-order functions}{15}}
\@writefile{toc}{\contentsline {subsection}{\numberline {9.6}Parameter Passing}{15}}
\@writefile{toc}{\contentsline {subsubsection}{\numberline {9.6.1}Call-By-Value}{15}}
\@writefile{toc}{\contentsline {subsubsection}{\numberline {9.6.2}Call-by-reference}{15}}
\@writefile{toc}{\contentsline {subsubsection}{\numberline {9.6.3}Call-by-name}{15}}
\@writefile{toc}{\contentsline {subsection}{\numberline {9.7}Lazy evaluation/thunks}{15}}
\@writefile{toc}{\contentsline {subsection}{\numberline {9.8}Overloading}{16}}
\@writefile{toc}{\contentsline {subsection}{\numberline {9.9}Coercion}{16}}
\@writefile{toc}{\contentsline {subsection}{\numberline {9.10}Closures}{16}}
\@writefile{toc}{\contentsline {subsection}{\numberline {9.11}Equality vs Identity}{16}}
\@writefile{toc}{\contentsline {subsection}{\numberline {9.12}Compile time vs runtime}{16}}
\@writefile{toc}{\contentsline {subsection}{\numberline {9.13}Recursion}{16}}
\@writefile{toc}{\contentsline {subsection}{\numberline {9.14}Aliasing}{16}}
\gdef\minted@oldcachelist{,
default-pyg-prefix.pygstyle,
default.pygstyle,
......@@ -87,10 +93,13 @@
C628629981CF55D032F3C98601789CD46CD81CFDCB5F0793F497D493F610EBFB.pygtex,
5C50D278279BB4EB95B2DD7112575CD04760FA0D46E6ABB3BDF61BCAA500EF4C.pygtex,
BE21E1EA69750E20E3B54F7A219FDD0C4760FA0D46E6ABB3BDF61BCAA500EF4C.pygtex,
B1A6820689DC5F95D72C265BF23F869E4760FA0D46E6ABB3BDF61BCAA500EF4C.pygtex,
439B699FCA243C136B38832E7B1655B04760FA0D46E6ABB3BDF61BCAA500EF4C.pygtex,
65BF697A64C00E405701F37AF65B23554760FA0D46E6ABB3BDF61BCAA500EF4C.pygtex,
E3B732DDE840FC16773250F77F310BC04760FA0D46E6ABB3BDF61BCAA500EF4C.pygtex,
2963A23D45F46549918EDF3D70E4CF9A4760FA0D46E6ABB3BDF61BCAA500EF4C.pygtex,
D4B0FE927B925934355B3498C686482A4760FA0D46E6ABB3BDF61BCAA500EF4C.pygtex,
7640484B78377AAD56B141D62D611ABD4760FA0D46E6ABB3BDF61BCAA500EF4C.pygtex,
E238A46EDE50798EB2CC3A3A95ADCDFAA15C0CEA82421F045DAF380F7E860C2A.pygtex,
BBDD6AFFEF104625B3697C86096991EBA15C0CEA82421F045DAF380F7E860C2A.pygtex,
0ECFCE06E694081467C8E59FB8829806A15C0CEA82421F045DAF380F7E860C2A.pygtex,
......@@ -98,10 +107,12 @@
ED2E6C59BBDE7EF1E3C21298CE92EEAFA15C0CEA82421F045DAF380F7E860C2A.pygtex,
EE396F4F7DDCDDD92E3D7FB81D4371F3A15C0CEA82421F045DAF380F7E860C2A.pygtex,
4AF490FEA182ADBF31D67A1B254CF9DFA15C0CEA82421F045DAF380F7E860C2A.pygtex,
A56864D158370C50A61A8B40BF593B7AA15C0CEA82421F045DAF380F7E860C2A.pygtex,
C634C5B98E048D2D62EA757C69B3D424A15C0CEA82421F045DAF380F7E860C2A.pygtex,
02DFB91B05E21760BDA809236035596BA15C0CEA82421F045DAF380F7E860C2A.pygtex,
57EC26033360CCD3724E8AF51E1F98CCF2CA81E7B26B3986E5291D03C014E77B.pygtex,
77C0832C8BCB2A6A98117AFCECBE18C9F2CA81E7B26B3986E5291D03C014E77B.pygtex,
344390A64555B36245F4806596BE054FF2CA81E7B26B3986E5291D03C014E77B.pygtex,
BC7CBEA733FDC071906554D63AC80FA1F2CA81E7B26B3986E5291D03C014E77B.pygtex,
6503A0D437DF0FAAFAFD7D5C90521B4CF2CA81E7B26B3986E5291D03C014E77B.pygtex,
F5C6D8F059AB11589408A75B29FFB18AF2CA81E7B26B3986E5291D03C014E77B.pygtex,
52139519543E28217844CBDFD7056C76F2CA81E7B26B3986E5291D03C014E77B.pygtex,
......@@ -115,10 +126,7 @@
FF3902625C50950847A6A70A8600D59DF2CA81E7B26B3986E5291D03C014E77B.pygtex,
EE2D7538D96D4B5E2BC4B913B41FC366465A516120F3196FA8E2CA26C46A5C64.pygtex,
3B10F88D8DCED974CDD9946B53C2D9666CD81CFDCB5F0793F497D493F610EBFB.pygtex,
874C30DABB4D3006287318F54AA39D80465A516120F3196FA8E2CA26C46A5C64.pygtex,
75C03D82507A67BD7A35CA65A1C45809465A516120F3196FA8E2CA26C46A5C64.pygtex}
\@writefile{toc}{\contentsline {subsection}{\numberline {9.11}Equality vs Identity}{15}}
\@writefile{toc}{\contentsline {subsection}{\numberline {9.12}Compile time vs runtime}{15}}
\@writefile{toc}{\contentsline {subsection}{\numberline {9.13}Recursion}{15}}
\@writefile{toc}{\contentsline {subsection}{\numberline {9.14}Aliasing}{15}}
\@writefile{toc}{\contentsline {subsection}{\numberline {9.15}Pointer stuff}{15}}
\@writefile{toc}{\contentsline {subsection}{\numberline {9.16}Type variance}{15}}
\@writefile{toc}{\contentsline {subsection}{\numberline {9.15}Pointer stuff}{17}}
\@writefile{toc}{\contentsline {subsection}{\numberline {9.16}Type variance}{17}}
# Fdb version 3
["pdflatex"] 1527972206 "all_study_guide.tex" "all_study_guide.pdf" "all_study_guide" 1527972206
["pdflatex"] 1527983354 "all_study_guide.tex" "all_study_guide.pdf" "all_study_guide" 1527983354
"/dev/null" 1527892464 0 d41d8cd98f00b204e9800998ecf8427e ""
"/usr/share/texmf-dist/fonts/enc/dvips/cm-super/cm-super-ts1.enc" 1520157211 2900 1537cc8184ad1792082cd229ecc269f4 ""
"/usr/share/texmf-dist/fonts/map/fontname/texfonts.map" 1520157216 3332 103109f5612ad95229751940c61aada0 ""
......@@ -65,6 +65,7 @@
"/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map" 1525542102 334286 7d54d57af850f32d2e4cd0d3222731c3 ""
"/var/lib/texmf/web2c/pdftex/pdflatex.fmt" 1521224195 7738161 aecc60ff9c9833bfab2dfe8c9cc680fd ""
"_minted-all_study_guide/01BAD6EA5069C485AE1342E9AAC656366CD81CFDCB5F0793F497D493F610EBFB.pygtex" 1527965156 114 80a7f39b73f2c89a3ae321c2f02e3a91 ""
"_minted-all_study_guide/02DFB91B05E21760BDA809236035596BA15C0CEA82421F045DAF380F7E860C2A.pygtex" 1527979913 336 89f2c9d2acd9e6202156ba807bd4dc4b ""
"_minted-all_study_guide/06E8C62ECB8CF47D4B0B17F6E88F27B46CD81CFDCB5F0793F497D493F610EBFB.pygtex" 1527965156 364 06d1c92439b5aa37464ed63187a335da ""
"_minted-all_study_guide/0ECFCE06E694081467C8E59FB8829806A15C0CEA82421F045DAF380F7E860C2A.pygtex" 1527971886 238 e88bf1832d9b442059da54cf87820325 ""
"_minted-all_study_guide/1B3C5941AD6C1BB61D97C2CCAF2710626CD81CFDCB5F0793F497D493F610EBFB.pygtex" 1527965156 418 40ff9d07aaba9b65e8bd07ba069e953a ""
......@@ -83,18 +84,23 @@
"_minted-all_study_guide/6503A0D437DF0FAAFAFD7D5C90521B4CF2CA81E7B26B3986E5291D03C014E77B.pygtex" 1527967996 359 1004f3a52ef21906273c24c979fb0ab6 ""
"_minted-all_study_guide/65BF697A64C00E405701F37AF65B23554760FA0D46E6ABB3BDF61BCAA500EF4C.pygtex" 1527970044 478 d620dea5032e00ad35364461a1759779 ""
"_minted-all_study_guide/72D37D2B01BA483F7A5BD40BD6BB278EF2CA81E7B26B3986E5291D03C014E77B.pygtex" 1527965156 1303 97e14fe839e2162da54266c4b22e53ce ""
"_minted-all_study_guide/75C03D82507A67BD7A35CA65A1C45809465A516120F3196FA8E2CA26C46A5C64.pygtex" 1527972205 231 3471cf37183e57c8d74f8aa43e208bfe ""
"_minted-all_study_guide/75C03D82507A67BD7A35CA65A1C45809465A516120F3196FA8E2CA26C46A5C64.pygtex" 1527981352 231 3471cf37183e57c8d74f8aa43e208bfe ""
"_minted-all_study_guide/7640484B78377AAD56B141D62D611ABD4760FA0D46E6ABB3BDF61BCAA500EF4C.pygtex" 1527983355 675 64d648bd9551b8eed164eb8b601425ee ""
"_minted-all_study_guide/77C0832C8BCB2A6A98117AFCECBE18C9F2CA81E7B26B3986E5291D03C014E77B.pygtex" 1527966482 659 921b836a2ca62610a708731513607f5f ""
"_minted-all_study_guide/7D06FEC69347AFA3186649DC3C1DBCA06CD81CFDCB5F0793F497D493F610EBFB.pygtex" 1527965156 201 ef384ddccfcd8315243a58ce9efd5488 ""
"_minted-all_study_guide/874C30DABB4D3006287318F54AA39D80465A516120F3196FA8E2CA26C46A5C64.pygtex" 1527981352 849 3142a9f33a109249f6bbd813ccadcdaa ""
"_minted-all_study_guide/87BA332A2091250B02A456556DB5A659F2CA81E7B26B3986E5291D03C014E77B.pygtex" 1527966482 403 31c11736f7cdcf21c11b4a38db52a9ab ""
"_minted-all_study_guide/8D00AD237703CBE4A4F273951D0EF2116CD81CFDCB5F0793F497D493F610EBFB.pygtex" 1527965156 953 6856c2d16382ff3be6e5f83176c93ab1 ""
"_minted-all_study_guide/996946FE6590634B25B353ADBDFFABC86CD81CFDCB5F0793F497D493F610EBFB.pygtex" 1527965156 166 cded41d5a8a198e155215dc154f7c4f3 ""
"_minted-all_study_guide/A56864D158370C50A61A8B40BF593B7AA15C0CEA82421F045DAF380F7E860C2A.pygtex" 1527965156 250 6e4f5848cb69f08a2d83f04e2f7873f1 ""
"_minted-all_study_guide/AB4D65C4143175A385628621875BE9EC6CD81CFDCB5F0793F497D493F610EBFB.pygtex" 1527965156 742 8f15ef4e3ee5b1cb61d0d927e3729214 ""
"_minted-all_study_guide/B1A6820689DC5F95D72C265BF23F869E4760FA0D46E6ABB3BDF61BCAA500EF4C.pygtex" 1527974330 865 b9fc2695ce4befb5076eff78e30137f4 ""
"_minted-all_study_guide/BBDD6AFFEF104625B3697C86096991EBA15C0CEA82421F045DAF380F7E860C2A.pygtex" 1527971886 247 412248bf2d8e4f88cbe0b1aede59523b ""
"_minted-all_study_guide/BC7CBEA733FDC071906554D63AC80FA1F2CA81E7B26B3986E5291D03C014E77B.pygtex" 1527982579 460 30fc27dae0402915d9786a2083dc2c07 ""
"_minted-all_study_guide/BE21E1EA69750E20E3B54F7A219FDD0C4760FA0D46E6ABB3BDF61BCAA500EF4C.pygtex" 1527968812 211 48608ee934e5554b26ec497bbaed1848 ""
"_minted-all_study_guide/C628629981CF55D032F3C98601789CD46CD81CFDCB5F0793F497D493F610EBFB.pygtex" 1527965156 547 6a3b63aeeac14750d97e1c7f39e2b4c0 ""
"_minted-all_study_guide/C634C5B98E048D2D62EA757C69B3D424A15C0CEA82421F045DAF380F7E860C2A.pygtex" 1527980650 1893 909e7881d35ed9034289431b666c40a4 ""
"_minted-all_study_guide/CEBB2E4153930A8AB1FA44928D66F94CA15C0CEA82421F045DAF380F7E860C2A.pygtex" 1527965156 167 a8e81e2af1f97334084760f9e01b81a7 ""
"_minted-all_study_guide/D4B0FE927B925934355B3498C686482A4760FA0D46E6ABB3BDF61BCAA500EF4C.pygtex" 1527983280 676 1a2b324ff7ac3fd9901743b1ce8b6a3b ""
"_minted-all_study_guide/E238A46EDE50798EB2CC3A3A95ADCDFAA15C0CEA82421F045DAF380F7E860C2A.pygtex" 1527970389 192 07d5a90b999ff5fe82e2365b6b728d02 ""
"_minted-all_study_guide/E3B732DDE840FC16773250F77F310BC04760FA0D46E6ABB3BDF61BCAA500EF4C.pygtex" 1527965156 631 449e2d950049eb1ab6bc4b175533c26b ""
"_minted-all_study_guide/E47DECE261F6BDAFE988FE188C0AEBDA6CD81CFDCB5F0793F497D493F610EBFB.pygtex" 1527965156 2252 b7a6cbd327e9ccae35cdf89f5956c53f ""
......@@ -109,9 +115,9 @@
"_minted-all_study_guide/default-pyg-prefix.pygstyle" 1527965156 7889 3ce1fbc763e3e2c748310f4fe31722b6 ""
"_minted-all_study_guide/default.pygstyle" 1527965156 9275 f200be7fc0b7de2461cca28cb35b1427 ""
"all_study_guide.aex" 0 -1 0 ""
"all_study_guide.aux" 1527972206 9667 d6e2bcdf3ad3d1c33ca869bb09775183 ""
"all_study_guide.aux" 1527983280 10185 2c1a31dbca26ceb88519c575a9125fb3 ""
"all_study_guide.pyg" 0 -1 0 ""
"all_study_guide.tex" 1527972205 24637 0085fa5df47d065a5c607fec33b3474d ""
"all_study_guide.tex" 1527983353 26796 78b9b8b8e608ca217fc7c49e77f7db2a ""
"all_study_guide.w18" 0 -1 0 ""
(generated)
"all_study_guide.aux"
......
......@@ -194,6 +194,12 @@ INPUT _minted-all_study_guide/BE21E1EA69750E20E3B54F7A219FDD0C4760FA0D46E6ABB3BD
INPUT _minted-all_study_guide/BE21E1EA69750E20E3B54F7A219FDD0C4760FA0D46E6ABB3BDF61BCAA500EF4C.pygtex
OUTPUT all_study_guide.pyg
INPUT ./all_study_guide.pyg
INPUT _minted-all_study_guide/B1A6820689DC5F95D72C265BF23F869E4760FA0D46E6ABB3BDF61BCAA500EF4C.pygtex
INPUT _minted-all_study_guide/B1A6820689DC5F95D72C265BF23F869E4760FA0D46E6ABB3BDF61BCAA500EF4C.pygtex
INPUT _minted-all_study_guide/B1A6820689DC5F95D72C265BF23F869E4760FA0D46E6ABB3BDF61BCAA500EF4C.pygtex
INPUT _minted-all_study_guide/B1A6820689DC5F95D72C265BF23F869E4760FA0D46E6ABB3BDF61BCAA500EF4C.pygtex
OUTPUT all_study_guide.pyg
INPUT ./all_study_guide.pyg
INPUT _minted-all_study_guide/439B699FCA243C136B38832E7B1655B04760FA0D46E6ABB3BDF61BCAA500EF4C.pygtex
INPUT _minted-all_study_guide/439B699FCA243C136B38832E7B1655B04760FA0D46E6ABB3BDF61BCAA500EF4C.pygtex
INPUT _minted-all_study_guide/439B699FCA243C136B38832E7B1655B04760FA0D46E6ABB3BDF61BCAA500EF4C.pygtex
......@@ -218,6 +224,17 @@ INPUT _minted-all_study_guide/2963A23D45F46549918EDF3D70E4CF9A4760FA0D46E6ABB3BD
INPUT _minted-all_study_guide/2963A23D45F46549918EDF3D70E4CF9A4760FA0D46E6ABB3BDF61BCAA500EF4C.pygtex
OUTPUT all_study_guide.pyg
INPUT ./all_study_guide.pyg
INPUT _minted-all_study_guide/D4B0FE927B925934355B3498C686482A4760FA0D46E6ABB3BDF61BCAA500EF4C.pygtex
INPUT _minted-all_study_guide/D4B0FE927B925934355B3498C686482A4760FA0D46E6ABB3BDF61BCAA500EF4C.pygtex
INPUT _minted-all_study_guide/D4B0FE927B925934355B3498C686482A4760FA0D46E6ABB3BDF61BCAA500EF4C.pygtex
INPUT _minted-all_study_guide/D4B0FE927B925934355B3498C686482A4760FA0D46E6ABB3BDF61BCAA500EF4C.pygtex
OUTPUT all_study_guide.pyg
INPUT ./all_study_guide.pyg
INPUT _minted-all_study_guide/7640484B78377AAD56B141D62D611ABD4760FA0D46E6ABB3BDF61BCAA500EF4C.pygtex
INPUT _minted-all_study_guide/7640484B78377AAD56B141D62D611ABD4760FA0D46E6ABB3BDF61BCAA500EF4C.pygtex
INPUT _minted-all_study_guide/7640484B78377AAD56B141D62D611ABD4760FA0D46E6ABB3BDF61BCAA500EF4C.pygtex
OUTPUT all_study_guide.pyg
INPUT ./all_study_guide.pyg
INPUT _minted-all_study_guide/E238A46EDE50798EB2CC3A3A95ADCDFAA15C0CEA82421F045DAF380F7E860C2A.pygtex
INPUT _minted-all_study_guide/E238A46EDE50798EB2CC3A3A95ADCDFAA15C0CEA82421F045DAF380F7E860C2A.pygtex
INPUT _minted-all_study_guide/E238A46EDE50798EB2CC3A3A95ADCDFAA15C0CEA82421F045DAF380F7E860C2A.pygtex
......@@ -260,10 +277,16 @@ INPUT _minted-all_study_guide/4AF490FEA182ADBF31D67A1B254CF9DFA15C0CEA82421F045D
INPUT _minted-all_study_guide/4AF490FEA182ADBF31D67A1B254CF9DFA15C0CEA82421F045DAF380F7E860C2A.pygtex
OUTPUT all_study_guide.pyg
INPUT ./all_study_guide.pyg
INPUT _minted-all_study_guide/A56864D158370C50A61A8B40BF593B7AA15C0CEA82421F045DAF380F7E860C2A.pygtex
INPUT _minted-all_study_guide/A56864D158370C50A61A8B40BF593B7AA15C0CEA82421F045DAF380F7E860C2A.pygtex
INPUT _minted-all_study_guide/A56864D158370C50A61A8B40BF593B7AA15C0CEA82421F045DAF380F7E860C2A.pygtex
INPUT _minted-all_study_guide/A56864D158370C50A61A8B40BF593B7AA15C0CEA82421F045DAF380F7E860C2A.pygtex
INPUT _minted-all_study_guide/C634C5B98E048D2D62EA757C69B3D424A15C0CEA82421F045DAF380F7E860C2A.pygtex
INPUT _minted-all_study_guide/C634C5B98E048D2D62EA757C69B3D424A15C0CEA82421F045DAF380F7E860C2A.pygtex
INPUT _minted-all_study_guide/C634C5B98E048D2D62EA757C69B3D424A15C0CEA82421F045DAF380F7E860C2A.pygtex
INPUT _minted-all_study_guide/C634C5B98E048D2D62EA757C69B3D424A15C0CEA82421F045DAF380F7E860C2A.pygtex
OUTPUT all_study_guide.pyg
INPUT ./all_study_guide.pyg
INPUT _minted-all_study_guide/02DFB91B05E21760BDA809236035596BA15C0CEA82421F045DAF380F7E860C2A.pygtex
INPUT _minted-all_study_guide/02DFB91B05E21760BDA809236035596BA15C0CEA82421F045DAF380F7E860C2A.pygtex
INPUT _minted-all_study_guide/02DFB91B05E21760BDA809236035596BA15C0CEA82421F045DAF380F7E860C2A.pygtex
INPUT _minted-all_study_guide/02DFB91B05E21760BDA809236035596BA15C0CEA82421F045DAF380F7E860C2A.pygtex
OUTPUT all_study_guide.pyg
INPUT ./all_study_guide.pyg
INPUT _minted-all_study_guide/57EC26033360CCD3724E8AF51E1F98CCF2CA81E7B26B3986E5291D03C014E77B.pygtex
......@@ -284,6 +307,12 @@ INPUT _minted-all_study_guide/344390A64555B36245F4806596BE054FF2CA81E7B26B3986E5
INPUT _minted-all_study_guide/344390A64555B36245F4806596BE054FF2CA81E7B26B3986E5291D03C014E77B.pygtex
OUTPUT all_study_guide.pyg
INPUT ./all_study_guide.pyg
INPUT _minted-all_study_guide/BC7CBEA733FDC071906554D63AC80FA1F2CA81E7B26B3986E5291D03C014E77B.pygtex
INPUT _minted-all_study_guide/BC7CBEA733FDC071906554D63AC80FA1F2CA81E7B26B3986E5291D03C014E77B.pygtex
INPUT _minted-all_study_guide/BC7CBEA733FDC071906554D63AC80FA1F2CA81E7B26B3986E5291D03C014E77B.pygtex
INPUT _minted-all_study_guide/BC7CBEA733FDC071906554D63AC80FA1F2CA81E7B26B3986E5291D03C014E77B.pygtex
OUTPUT all_study_guide.pyg
INPUT ./all_study_guide.pyg
INPUT _minted-all_study_guide/6503A0D437DF0FAAFAFD7D5C90521B4CF2CA81E7B26B3986E5291D03C014E77B.pygtex
INPUT _minted-all_study_guide/6503A0D437DF0FAAFAFD7D5C90521B4CF2CA81E7B26B3986E5291D03C014E77B.pygtex
INPUT _minted-all_study_guide/6503A0D437DF0FAAFAFD7D5C90521B4CF2CA81E7B26B3986E5291D03C014E77B.pygtex
......@@ -363,6 +392,12 @@ INPUT _minted-all_study_guide/3B10F88D8DCED974CDD9946B53C2D9666CD81CFDCB5F0793F4
INPUT _minted-all_study_guide/3B10F88D8DCED974CDD9946B53C2D9666CD81CFDCB5F0793F497D493F610EBFB.pygtex
OUTPUT all_study_guide.pyg
INPUT ./all_study_guide.pyg
INPUT _minted-all_study_guide/874C30DABB4D3006287318F54AA39D80465A516120F3196FA8E2CA26C46A5C64.pygtex
INPUT _minted-all_study_guide/874C30DABB4D3006287318F54AA39D80465A516120F3196FA8E2CA26C46A5C64.pygtex
INPUT _minted-all_study_guide/874C30DABB4D3006287318F54AA39D80465A516120F3196FA8E2CA26C46A5C64.pygtex
INPUT _minted-all_study_guide/874C30DABB4D3006287318F54AA39D80465A516120F3196FA8E2CA26C46A5C64.pygtex
OUTPUT all_study_guide.pyg
INPUT ./all_study_guide.pyg
INPUT _minted-all_study_guide/75C03D82507A67BD7A35CA65A1C45809465A516120F3196FA8E2CA26C46A5C64.pygtex
INPUT _minted-all_study_guide/75C03D82507A67BD7A35CA65A1C45809465A516120F3196FA8E2CA26C46A5C64.pygtex
INPUT _minted-all_study_guide/75C03D82507A67BD7A35CA65A1C45809465A516120F3196FA8E2CA26C46A5C64.pygtex
......
This is pdfTeX, Version 3.14159265-2.6-1.40.18 (TeX Live 2017/Arch Linux) (preloaded format=pdflatex 2018.3.16) 2 JUN 2018 13:43
This is pdfTeX, Version 3.14159265-2.6-1.40.18 (TeX Live 2017/Arch Linux) (preloaded format=pdflatex 2018.3.16) 2 JUN 2018 16:49
entering extended mode
\write18 enabled.
file:line:error style messages enabled.
......@@ -753,49 +753,100 @@ File: ts1cmr.fd 2014/09/29 v2.5h Standard LaTeX font definitions
(./_minted-all_study_guide/BE21E1EA69750E20E3B54F7A219FDD0C4760FA0D46E6ABB3BDF61BCAA500EF4C.pygtex)
\openout3 = `all_study_guide.pyg'.
(./_minted-all_study_guide/B1A6820689DC5F95D72C265BF23F869E4760FA0D46E6ABB3BDF61BCAA500EF4C.pygtex [4])
\openout3 = `all_study_guide.pyg'.
(./_minted-all_study_guide/439B699FCA243C136B38832E7B1655B04760FA0D46E6ABB3BDF61BCAA500EF4C.pygtex)
\openout3 = `all_study_guide.pyg'.
(./_minted-all_study_guide/65BF697A64C00E405701F37AF65B23554760FA0D46E6ABB3BDF61BCAA500EF4C.pygtex [4])
(./_minted-all_study_guide/65BF697A64C00E405701F37AF65B23554760FA0D46E6ABB3BDF61BCAA500EF4C.pygtex)
\openout3 = `all_study_guide.pyg'.
(./_minted-all_study_guide/E3B732DDE840FC16773250F77F310BC04760FA0D46E6ABB3BDF61BCAA500EF4C.pygtex)
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <7> on input line 178.
(Font) <7> on input line 193.
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <5> on input line 178.
(Font) <5> on input line 193.
\openout3 = `all_study_guide.pyg'.
(./_minted-all_study_guide/2963A23D45F46549918EDF3D70E4CF9A4760FA0D46E6ABB3BDF61BCAA500EF4C.pygtex)
\openout3 = `all_study_guide.pyg'.
(./_minted-all_study_guide/2963A23D45F46549918EDF3D70E4CF9A4760FA0D46E6ABB3BDF61BCAA500EF4C.pygtex)
(./_minted-all_study_guide/D4B0FE927B925934355B3498C686482A4760FA0D46E6ABB3BDF61BCAA500EF4C.pygtex)
\openout3 = `all_study_guide.pyg'.
runsystem(pygmentize -l prolog -f latex -P commandprefix=PYG -F tokenmerge -o _minted-all_study_guide/7640484B78377AAD56B141D62D611ABD4760FA0D46E6ABB3BDF61BCAA500EF4C.pygtex all_study_guide.pyg)...executed.
(./_minted-all_study_guide/7640484B78377AAD56B141D62D611ABD4760FA0D46E6ABB3BDF61BCAA500EF4C.pygtex [5])
\openout3 = `all_study_guide.pyg'.
(./_minted-all_study_guide/E238A46EDE50798EB2CC3A3A95ADCDFAA15C0CEA82421F045DAF380F7E860C2A.pygtex)
(./_minted-all_study_guide/E238A46EDE50798EB2CC3A3A95ADCDFAA15C0CEA82421F045DAF380F7E860C2A.pygtex)
\openout3 = `all_study_guide.pyg'.
(./_minted-all_study_guide/BBDD6AFFEF104625B3697C86096991EBA15C0CEA82421F045DAF380F7E860C2A.pygtex)
\openout3 = `all_study_guide.pyg'.
(./_minted-all_study_guide/0ECFCE06E694081467C8E59FB8829806A15C0CEA82421F045DAF380F7E860C2A.pygtex [5])
(./_minted-all_study_guide/0ECFCE06E694081467C8E59FB8829806A15C0CEA82421F045DAF380F7E860C2A.pygtex)
\openout3 = `all_study_guide.pyg'.
(./_minted-all_study_guide/E52FDF8B16A930D9CB0D715D43B382B6A15C0CEA82421F045DAF380F7E860C2A.pygtex)
\openout3 = `all_study_guide.pyg'.
(./_minted-all_study_guide/ED2E6C59BBDE7EF1E3C21298CE92EEAFA15C0CEA82421F045DAF380F7E860C2A.pygtex)
(./_minted-all_study_guide/ED2E6C59BBDE7EF1E3C21298CE92EEAFA15C0CEA82421F045DAF380F7E860C2A.pygtex [6])
\openout3 = `all_study_guide.pyg'.
(./_minted-all_study_guide/EE396F4F7DDCDDD92E3D7FB81D4371F3A15C0CEA82421F045DAF380F7E860C2A.pygtex [6])
(./_minted-all_study_guide/EE396F4F7DDCDDD92E3D7FB81D4371F3A15C0CEA82421F045DAF380F7E860C2A.pygtex)
\openout3 = `all_study_guide.pyg'.
(./_minted-all_study_guide/4AF490FEA182ADBF31D67A1B254CF9DFA15C0CEA82421F045DAF380F7E860C2A.pygtex) [7]
(./_minted-all_study_guide/4AF490FEA182ADBF31D67A1B254CF9DFA15C0CEA82421F045DAF380F7E860C2A.pygtex [7])
\openout3 = `all_study_guide.pyg'.
(./_minted-all_study_guide/A56864D158370C50A61A8B40BF593B7AA15C0CEA82421F045DAF380F7E860C2A.pygtex)
(./_minted-all_study_guide/C634C5B98E048D2D62EA757C69B3D424A15C0CEA82421F045DAF380F7E860C2A.pygtex [8])
./all_study_guide.tex:348: LaTeX Error: Lonely \item--perhaps a missing list environment.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.348 \item A
rray appending can be done as the following:
Try typing <return> to proceed.
If that doesn't work, type X <return> to quit.
Underfull \hbox (badness 10000) detected at line 348
[][]
[]
\openout3 = `all_study_guide.pyg'.
(./_minted-all_study_guide/57EC26033360CCD3724E8AF51E1F98CCF2CA81E7B26B3986E5291D03C014E77B.pygtex)
Underfull \hbox (badness 10000) in paragraph at lines 313--315
(./_minted-all_study_guide/02DFB91B05E21760BDA809236035596BA15C0CEA82421F045DAF380F7E860C2A.pygtex)
./all_study_guide.tex:355: LaTeX Error: \begin{document} ended by \end{itemize}.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.355 \end{itemize}
Your command was ignored.
Type I <command> <return> to replace it with another command,
or <return> to continue without it.
./all_study_guide.tex:355: Extra \endgroup.
<recently read> \endgroup
l.355 \end{itemize}
Things are pretty mixed up, but I think the worst is over.
\openout3 = `all_study_guide.pyg'.
(./_minted-all_study_guide/57EC26033360CCD3724E8AF51E1F98CCF2CA81E7B26B3986E5291D03C014E77B.pygtex)
Underfull \hbox (badness 10000) in paragraph at lines 369--371
[]
......@@ -807,7 +858,10 @@ Underfull \hbox (badness 10000) in paragraph at lines 313--315
(./_minted-all_study_guide/344390A64555B36245F4806596BE054FF2CA81E7B26B3986E5291D03C014E77B.pygtex)
\openout3 = `all_study_guide.pyg'.
(./_minted-all_study_guide/6503A0D437DF0FAAFAFD7D5C90521B4CF2CA81E7B26B3986E5291D03C014E77B.pygtex [8])
(./_minted-all_study_guide/BC7CBEA733FDC071906554D63AC80FA1F2CA81E7B26B3986E5291D03C014E77B.pygtex [9])
\openout3 = `all_study_guide.pyg'.
(./_minted-all_study_guide/6503A0D437DF0FAAFAFD7D5C90521B4CF2CA81E7B26B3986E5291D03C014E77B.pygtex)
\openout3 = `all_study_guide.pyg'.
(./_minted-all_study_guide/F5C6D8F059AB11589408A75B29FFB18AF2CA81E7B26B3986E5291D03C014E77B.pygtex)
......@@ -816,13 +870,13 @@ Underfull \hbox (badness 10000) in paragraph at lines 313--315
(./_minted-all_study_guide/52139519543E28217844CBDFD7056C76F2CA81E7B26B3986E5291D03C014E77B.pygtex)
\openout3 = `all_study_guide.pyg'.
(./_minted-all_study_guide/87BA332A2091250B02A456556DB5A659F2CA81E7B26B3986E5291D03C014E77B.pygtex)
(./_minted-all_study_guide/87BA332A2091250B02A456556DB5A659F2CA81E7B26B3986E5291D03C014E77B.pygtex) [10]
\openout3 = `all_study_guide.pyg'.
(./_minted-all_study_guide/72D37D2B01BA483F7A5BD40BD6BB278EF2CA81E7B26B3986E5291D03C014E77B.pygtex [9])
(./_minted-all_study_guide/72D37D2B01BA483F7A5BD40BD6BB278EF2CA81E7B26B3986E5291D03C014E77B.pygtex)
\openout3 = `all_study_guide.pyg'.
(./_minted-all_study_guide/F6F9C282D0607C1297F7BD79058D6E2B465A516120F3196FA8E2CA26C46A5C64.pygtex [10])
(./_minted-all_study_guide/F6F9C282D0607C1297F7BD79058D6E2B465A516120F3196FA8E2CA26C46A5C64.pygtex [11])
\openout3 = `all_study_guide.pyg'.
(./_minted-all_study_guide/2EEB3A010C71E706DCBB719B2551C060465A516120F3196FA8E2CA26C46A5C64.pygtex)
......@@ -831,43 +885,55 @@ Underfull \hbox (badness 10000) in paragraph at lines 313--315
(./_minted-all_study_guide/F95EEB5DBC5CAC0C96CDFF57347261BB465A516120F3196FA8E2CA26C46A5C64.pygtex)
\openout3 = `all_study_guide.pyg'.
(./_minted-all_study_guide/CEBB2E4153930A8AB1FA44928D66F94CA15C0CEA82421F045DAF380F7E860C2A.pygtex [11])
(./_minted-all_study_guide/CEBB2E4153930A8AB1FA44928D66F94CA15C0CEA82421F045DAF380F7E860C2A.pygtex [12])
\openout3 = `all_study_guide.pyg'.
(./_minted-all_study_guide/5B8FDFBCF96E776350835B2A51C36EEBF2CA81E7B26B3986E5291D03C014E77B.pygtex)
\openout5 = `all_study_guide.pyg'.
(./_minted-all_study_guide/FF3902625C50950847A6A70A8600D59DF2CA81E7B26B3986E5291D03C014E77B.pygtex) [12]
(./_minted-all_study_guide/FF3902625C50950847A6A70A8600D59DF2CA81E7B26B3986E5291D03C014E77B.pygtex) [13]
\openout3 = `all_study_guide.pyg'.
(./_minted-all_study_guide/EE2D7538D96D4B5E2BC4B913B41FC366465A516120F3196FA8E2CA26C46A5C64.pygtex)
Overfull \hbox (5.08403pt too wide) in paragraph at lines 508--511
(./_minted-all_study_guide/EE2D7538D96D4B5E2BC4B913B41FC366465A516120F3196FA8E2CA26C46A5C64.pygtex) [14]
Overfull \hbox (5.08403pt too wide) in paragraph at lines 571--574
\OT1/cmr/m/n/10 Call-by-value means that ev-ery-thing is copied upon en-ter-ing a func-tion.Languages
[]
[13]
\openout3 = `all_study_guide.pyg'.
(./_minted-all_study_guide/3B10F88D8DCED974CDD9946B53C2D9666CD81CFDCB5F0793F497D493F610EBFB.pygtex) [14]
(./_minted-all_study_guide/3B10F88D8DCED974CDD9946B53C2D9666CD81CFDCB5F0793F497D493F610EBFB.pygtex)
\openout3 = `all_study_guide.pyg'.
(./_minted-all_study_guide/874C30DABB4D3006287318F54AA39D80465A516120F3196FA8E2CA26C46A5C64.pygtex [15])
./all_study_guide.tex:604: Undefined control sequence.
l.604 ...Also, there is a weird phenomenon with \?
, where ArrayList<Point> f...
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
[16]
\openout3 = `all_study_guide.pyg'.
(./_minted-all_study_guide/75C03D82507A67BD7A35CA65A1C45809465A516120F3196FA8E2CA26C46A5C64.pygtex) [15] (./all_study_guide.aux)
(./_minted-all_study_guide/75C03D82507A67BD7A35CA65A1C45809465A516120F3196FA8E2CA26C46A5C64.pygtex) [17] (./all_study_guide.aux)
runsystem(rm all_study_guide.pyg)...executed.
)
Here is how much of TeX's memory you used:
6859 strings out of 492982
122337 string characters out of 6138579
222429 words of memory out of 5000000
10222 multiletter control sequences out of 15000+600000
6884 strings out of 492982
124388 string characters out of 6138579
223416 words of memory out of 5000000
10229 multiletter control sequences out of 15000+600000
6175 words of font info for 23 fonts, out of 8000000 for 9000
1141 hyphenation exceptions out of 8191
37i,5n,35p,857b,345s stack positions out of 5000i,500n,10000p,200000b,80000s
37i,5n,35p,857b,339s stack positions out of 5000i,500n,10000p,200000b,80000s
{/usr/share/texmf-dist/fonts/enc/dvips/cm-super/cm-super-ts1.enc}</usr/share/texmf-dist/fonts/type1/public/amsfonts/cm/cmbx10.pfb></usr/share/texmf-dist/fonts/type1/public/amsfonts/cm/cmbx12.pfb></usr/share/texmf-dist/fonts/type1/public/amsfonts/cm/cmitt10.pfb></usr/share/texmf-dist/fonts/type1/public/amsfonts/cm/cmmi10.pfb></usr/share/texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb></usr/share/texmf-dist/fonts/type1/public/amsfonts/cm/cmsy10.pfb></usr/share/texmf-dist/fonts/type1/public/amsfonts/cm/cmti10.pfb></usr/share/texmf-dist/fonts/type1/public/amsfonts/cm/cmtt10.pfb></usr/share/texmf-dist/fonts/type1/public/cm-super/sfrm1000.pfb>
Output written on all_study_guide.pdf (15 pages, 145368 bytes).
Output written on all_study_guide.pdf (17 pages, 148002 bytes).
PDF statistics:
90 PDF objects out of 1000 (max. 8388607)
63 compressed objects within 1 object stream
96 PDF objects out of 1000 (max. 8388607)
67 compressed objects within 1 object stream
0 named destinations out of 1000 (max. 500000)
1 words of extra memory for PDF output out of 10000 (max. 10000000)
No preview for this file type
......@@ -153,7 +153,22 @@ We can navigate these with car for first element, cdr for tail, cadr for head of
\subsection{Multiple answers}
One of the special parts of Prolog is that it returns multiple answers for each query -- it keeps
recursively backtracking through rules until it runs out of answers. You can also
recursively backtracking through rules until it runs out of answers. The backtracking depends
on the rules themselves:
\begin{minted}{prolog}
twice([X,X|Xs],X).
twice([X|Xs],Y) :- twice(Xs,Y).
twice(As, 1).
As = [1, 1|X1];
As = [X1, 1, 1|X2];
As = [X1, X2, 1|X3];
\end{minted}
You can also
control search using the "cut" (!) operator:
\begin{minted}{prolog}
member_cut(X, [X|_]) :- !.
......@@ -183,6 +198,23 @@ We can navigate these with car for first element, cdr for tail, cadr for head of
doubles([X]).
doubles([X, Y|Ys]) :- {Y=2*x}, doubles([Y|Ys]).
\end{minted}
\subsection{clpr, positives}
clpr example of goal in which the second param is the positive numbers from the first param:
\begin{minted}{prolog}
positives([],[]).
positives([X|Xs],[X|Ys]) :- X>0, positives(Xs,Ys).
positives([X|Xs],Ys) :- X<=0, positives(Xs,Ys).